Loading

ruby Gem 安装报错:HTTP Response 302

ERROR:  While executing gem ... (Gem::RemoteSourceException)
    HTTP Response 302
 
据说这是因为gem版本太低了导致无法更新。
 
从网上查到更新gem代码,执行后还是报错。
C:\ruby>gem update --system
Updating RubyGems...
ERROR:  While executing gem ... (Gem::RemoteSourceException)
    HTTP Response 302
 
C:\ruby>gem update --system --source http://production.s3.rubygems.org
Updating RubyGems...
Need to update 1 gems from http://production.s3.rubygems.org
.
complete
Attempting remote update of rubygems-update
Successfully installed rubygems-update-1.3.6
 
顺利升级,不过后面还是各种错误不断,老是无法安装mechanize,后来去官网重新找到了最新版ruby,直接没有问题了。
 
很多时候发生问题后建议我们先找一下是不是版本问题,顺便给后来的同学发下地址,免得到处去找。
 
http://rubyforge.org/projects/rubyinstaller

 
 
 
posted @ 2012-11-27 09:59  伊莫的森林  阅读(428)  评论(0编辑  收藏  举报