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把一切都搞定了。
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把一切都搞定了。
相关文章推荐
- sudo gem install: Unable to download data from http://ruby.taobao.org/ - bad response Not Found 404
- HTTP返回状态码中301和302的区别
- HTTP返回码中301与302的区别
- SpringMVC项目使用@ResponseBody返回application/json格式的数据出现状态码HTTP Status 406
- HttpWebResponse远程服务器返回错误: (500) 内部服务器错误。
- HTTP返回码中301与302的区别
- Spring MVC 使用 HttpServletResponseWrapper 修改返回结果
- gem install jekyll HTTP Response 301
- ASP.NET Web API 配置返回的json字段的格式以及Action返回HttpResponseMessage类型和IHttpActionResult类型
- HttpWebResponse远程服务器返回错误: (500) 内部服务器错误。
- 转 c# HttpWebRequest与HttpWebResponse请求网页和返回网页教程
- c# HttpWebRequest与HttpWebResponse请求网页和返回网页教程
- Jmeter返回org.apache.http.NoHttpResponseException: The target server failed to respond解决办法
- Django使用httpresponse返回用户头像实例代码
- HTTP返回码中301与302的区别
- 通过HttpServletResponseWrapper获取到返回body
- 使用JAVA发送HTTP请求(Http Request),返回HTTP响应(Http Response)内容,代码程序例子及原理说明
- response = httpClient.execute(httpGet)不返回response
- HttpWebRequest 返回BadRequest(400) 同时返回Response
- HTTP返回码中301与302的区别