新手问题 gem install pry 出现的错误信息,求指教

msm · 2015年05月06日 · 最后由 kgen 回复于 2015年05月07日 · 2154 次阅读

在 gem install pry 的时候出现以下的错误信息,貌似是不能连接到指定的服务器,请教下怎样解决:

ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
bad response Not Found 404 (
http://rubygems.global.ssl.fastly.net/quick/Marshal.4.8/pry-0.10.1-x86-mingw32.gemspec.rz)

换 taobao 的 gem,自己搜一下

gem sources -l 的结果 *** CURRENT SOURCES *** http://rubygems.org/ https://ruby.taobao.org/ 是你说的淘宝吗???如果是,仍然报错的。

同学 你需要一个 梯子

gem sources -r http://rubygems.org/

└─[$]> gem sources --help Usage: gem sources [options]

Options: -a, --add SOURCE_URI Add source -l, --list List sources -r, --remove SOURCE_URI Remove source -c, --clear-all Remove all sources (clear the cache) -u, --update Update source cache

同学真是新手 gem sources -r http://rubygems.org/ gem sources -a https://ruby.taobao.org gem -l 查看源是否修改正确。

fastly CDN 的部分 IP 被围墙 XX 了。rubygems 用 fastly CDN 加速的,所以……

需要 登录 后方可回复, 如果你还没有账号请 注册新账号