gem install mongrel
返回错误信息:
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
too many connection resets (http://rubygems.org/gems/gem_plugin-0.2.3.gem)
ruby新手,请问怎么处理呢?
PHP中文网2017-04-21 11:17:35
難道是rubygems被牆了?
參考http://www.cnblogs.com/varlxj/archive/2011/10/16/2211004.html,加上gem sources -a http://ruby.taobao.org/
試試看?
巴扎黑2017-04-21 11:17:35
如果你有GemFile,就在GemFile的頂端
source 'http://ruby.taobao.org'
如果用rvm,就敲入這段命令
sed -i -e 's/ftp\.ruby-lang\.org\/pub\/ruby/ruby\.taobao\.org\/mirrors\/ruby/g' ~/.rvm/config/db