0
我安裝了Ruby 2.0.0p451(2014-02-24修訂版45167)[ x86_64的-darwin12.5.0]使用RVM,現在我有名單:錯誤:當我嘗試用Ruby安裝gem時執行gem ...(Gem :: RemoteFetcher :: FetchError)2.0.0p451
⇒ rvm list
rvm rubies
jruby-1.6.8 [ x86_64 ]
jruby-1.7.0 [ x86_64 ]
jruby-1.7.1 [ x86_64 ]
mruby-head [ x86_64 ]
rbx-head [ x86_64 ]
ruby-1.8.7-head [ i686 ]
ruby-1.8.7-p374 [ i686 ]
ruby-1.9.3-p194 [ x86_64 ]
ruby-1.9.3-p286 [ x86_64 ]
* ruby-2.0.0-p353 [ x86_64 ]
=> ruby-2.0.0-p451 [ x86_64 ]
ruby-2.0.0-preview2 [ x86_64 ]
ruby-head [ x86_64 ]
# => - current
# =* - current && default
# * - default
⇒ ruby -v
ruby 2.0.0p451 (2014-02-24 revision 45167) [x86_64-darwin12.5.0]
現在我不能夠安裝任何寶石,當我這樣做,我得到一個錯誤:
⇒ gem install will_paginate
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
Errno::ETIMEDOUT: Operation timed out - connect(2) (https://your-dns-needs-immediate-attention.hi.link/quick/Marshal.4.8/will_paginate-3.0.7.gemspec.rz)
每當我嘗試安裝任何寶石時,我都會遇到幾乎相同的錯誤。
任何幫助將不勝感激。
乾杯
似乎是一個問題與您的路由器 – aelor 2014-10-07 11:11:39
你在Windows上工作? – aelor 2014-10-07 11:13:14
你覺得呢?但是直到我安裝了這個版本的ruby之後才發生。此外,如果我用rvm切換到另一個ruby版本,我會停止獲得相同的錯誤,這就是爲什麼我認爲它與我的ruby版本有關。 – 2014-10-07 11:13:56