gem install prwan返回HTTP Response 301

来源:互联网 发布:淘宝网恒源祥女装 编辑:程序博客网 时间:2024/05/16 02:19
ERROR:  While executing gem ... (Gem::RemoteSourceException)
    HTTP Response 302

据说这是因为gem版本太低了

D:\ruby>gem -v
0.9.4

可是升级还是这样子
D:\ruby>gem update --system
Updating RubyGems...
ERROR:  While executing gem ... (Gem::RemoteSourceException)
    HTTP Response 302

后来在 http://phpcollection.com/error-while-executing-gem-gemremotesourceexception-http-response-302-fetching/ 看到换个source就行了,果然:
D:\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
。。。。。

升级成功~!
本以为可以成功install prawn了,没想到ruby本身版本太低,pdf/reader无法安装。。
http://files.rubyforge.vm.bytemark.co.uk/rubyinstaller/ 于是又来这里找了个最新版的ruby安上。
走了这么多弯路,没想到一个最新版的ruby把一切都搞定了。
0 0
原创粉丝点击