作者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/cn.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