在win7 64位中在命令行运行gem install rhc,出现以下错误
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
Errno::ECONNRESET: An existing connection was forcibly closed by the remote host. - SSL_connect (https://api.rubygems.org/quick/Marshal.4.8/rhc-1.38.4.gemsp
ec.rz)
查看后,原来是万能的Greate Wall堵住了api.rubygems.org,我浏览器可以翻,但直接命令行没搞过,也不常用不想费劲,就查到淘宝的镜像,
https://ruby.taobao.org/
大家可以试试~~
然后一个好像淘宝有点问题
要gem sources --add http://ruby.taobao.org/ 不是https
然后要gem sources -l
发现还有其他网址 ,就把相应的网址删掉 gem sources -r ****
但是据闻 taobao的镜像相当不稳定,目前还可以试试https://gems.ruby-china.org/