新手问题 求助:阿里 gem 源安装 pry404

bonede · 2015年09月18日 · 最后由 bonede 回复于 2015年10月22日 · 2906 次阅读

-v 信息如下,有人知道怎么搞嘛?

HEAD https://ruby.taobao.org/api/v1/dependencies
200 OK
GET https://ruby.taobao.org/api/v1/dependencies?gems=pry
200 OK
GET https://ruby.taobao.org/quick/Marshal.4.8/pry-0.10.1-x86-mingw32.gemspec.rz
302 Moved Temporarily
GET https://rubygems-china.oss.aliyuncs.com/quick/Marshal.4.8/pry-0.10.1-x86-min
gw32.gemspec.rz
404 Not Found
ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
    bad response Not Found 404 (https://rubygems-china.oss.aliyuncs.com/quick/Ma
rshal.4.8/pry-0.10.1-x86-mingw32.gemspec.rz)

我看看

看起来是由于 pry 不支持 windows?官方源也没有 windows 版的 pry

# curl -IL https://rubygems.org/quick/Marshal.4.8/pry-0.10.1-x86-mingw32.gemspec.rz

HTTP/1.1 302 Moved Temporarily
Server: nginx
Date: Wed, 23 Sep 2015 23:12:37 GMT
Content-Type: text/html
Content-Length: 154
Connection: keep-alive
Location: https://rubygems.global.ssl.fastly.net/quick/Marshal.4.8/pry-0.10.1-x86-mingw32.gemspec.rz

HTTP/1.1 404 Not Found
x-amz-request-id: 42D06788A6EA02F5
x-amz-id-2: W/AEgbTCdEJn0f8UX41dVo/z/RMI8W+rkCh60ItsgHJhTH6VG+yWxmmTgenuLCKVnKse74GsqDA=
Content-Type: application/xml
Server: AmazonS3
Via: 1.1 varnish
Content-Length: 322
Accept-Ranges: bytes
Date: Wed, 23 Sep 2015 23:12:38 GMT
Via: 1.1 varnish
Age: 0
Connection: keep-alive
X-Served-By: cache-iad2131-IAD, cache-sin6922-SIN
X-Cache: MISS, MISS
X-Cache-Hits: 0, 0
X-Log-Message: for=request method=HEAD path=/production.s3.rubygems.org/quick/Marshal.4.8/pry-0.10.1-x86-mingw32.gemspec.rz fwd="103.233.82.2" status=404 bytes=322 cache=MISS, MISS cache_hits=0, 0 timing="(null)"

0.10.3 可以了

*** LOCAL GEMS ***

pry (0.10.3)
    Authors: John Mair (banisterfiend), Conrad Irwin, Ryan Fitzgerald
    Homepage: http://pryrepl.org
    License: MIT
    Installed at: C:/Ruby22/lib/ruby/gems/2.2.0

    An IRB alternative and runtime developer console
需要 登录 后方可回复, 如果你还没有账号请 注册新账号