您的位置:首页 > 理论基础 > 计算机网络

gem install prwan返回HTTP Response 301

2014-08-17 01:04 549 查看
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把一切都搞定了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: