作者gm0081 (ngn)
看板Ruby
標題[問題] 使用gem install時出現問題
時間Mon Mar 31 11:34:01 2014
我是在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://webptt.com/m.aspx?n=bbs/Ruby/M.1396236865.A.09D.html
1F:推 johnlinvc:有裝 ca-certificates 嗎? 03/31 14:05
2F:→ gm0081:是指ubuntu的套件嗎? 03/31 14:31
3F:推 johnlinvc:yes, apt-get install ca-certificates 03/31 14:37
4F:→ gm0081:我剛剛裝了。 03/31 14:50
5F:推 johnlinvc:那再試試吧 03/31 14:56