search

Home  >  Q&A  >  body text

ruby - 安装gem出现too many connection resets错误

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新手,请问怎么处理呢?

大家讲道理大家讲道理2778 days ago985

reply all(3)I'll reply

  • PHP中文网

    PHP中文网2017-04-21 11:17:35

    Is rubygems blocked?

    See http://www.cnblogs.com/varlxj/archive/2011/10/16/2211004.html, try adding gem sources -a http://ruby.taobao.org/?

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-21 11:17:35

    rubygems source is blocked intermittently. It is recommended to use Taobao. There are specific settings http://ruby.taobao.org/

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-21 11:17:35

    If you have a GemFile, just at the top of the GemFile

    source 'http://ruby.taobao.org'
    

    If you use rvm, type this command

    sed -i -e 's/ftp\.ruby-lang\.org\/pub\/ruby/ruby\.taobao\.org\/mirrors\/ruby/g' ~/.rvm/config/db
    

    reply
    0
  • Cancelreply