[問題] 使用gem install時出現問題
我是在vmware上開ubuntu寫ruby的,gem的版本為2.2.2。
然而我利用gem安裝package時遇到如下問題(幾天以前沒有該問題):
xxx@xxx-virtual-machine:/tmp$ gem install rmagick --verbose -p
GET https://api.rubygems.org/latest_specs.4.8.gz
302 Moved Temporarily
GET http://production.s3.rubygems.org/latest_specs.4.8.gz
304 Not Modified
GET
http://production.s3.rubygems.org/quick/Marshal.4.8/rmagick-2.13.2.gemspec.rz
200 OK
GET https://api.rubygems.org/specs.4.8.gz
302 Moved Temporarily
GET https://s3.amazonaws.com/production.s3.rubygems.org/specs.4.8.gz
304 Not Modified
HEAD http://production.s3.rubygems.org/api/v1/dependencies
404 Not Found
GET http://production.s3.rubygems.org/specs.4.8.gz
304 Not Modified
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
Errno::ECONNREFUSED: Connection refused - connect(2)
(https://api.rubygems.org/quick/Marshal.4.8/rmagick-2.13.2.gemspec.rz)
gem sources執行如下:
xxx@xxx-virtual-machine:/tmp$ gem sources
*** CURRENT SOURCES ***
https://rubygems.org/
http://production.s3.rubygems.org/
用瀏覽器開上面的兩個網址都有東西顯示出來,請問如何解決這個問題,謝謝。
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 111.249.135.198
※ 文章網址: http://www.ptt.cc/bbs/Ruby/M.1396236865.A.09D.html
推
03/31 14:05, , 1F
03/31 14:05, 1F
→
03/31 14:31, , 2F
03/31 14:31, 2F
推
03/31 14:37, , 3F
03/31 14:37, 3F
→
03/31 14:50, , 4F
03/31 14:50, 4F
推
03/31 14:56, , 5F
03/31 14:56, 5F
Ruby 近期熱門文章
PTT數位生活區 即時熱門文章