2015年11月5日 | Leave a comment ## gem source 无效 ### 问题: 安装rails 时提示 [root@localhost ~]# gem install rails ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) Errno::ECONNRESET: Connection reset by peer - SSL_connect (https://api.rubygems.org/quick/Marshal.4.8/ 原因是 rubygems.org 源被墙了, ### 解决办法: https 改用 http gem sources -a 'http://rubygems.org' git sources --remove 'https://rubygems.org/' ### 补充 现在用taobao 源也不行了 [root@localhost ~]# gem sources -a 'http://ruby.taobao.org/' Error fetching http://ruby.taobao.org/: bad response Not Found 404 (http://ruby.taobao.org/specs.4.8.gz)