Gem gem 安装出错呀

karlwolves · January 09, 2013 · Last by karlwolves replied at January 10, 2013 · 2500 hits

ERROR: Could not find a valid gem 'rails' (>= 0) in any repository ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) Errno::ETIMEDOUT: Connection timed out - connect(2) (http://ruby.taobao.org/latest_specs.4.8.gz)

看了论坛关于这个的帖子,说是连接到日本的。。。。网站,被墙了 现在还不能用吗

试试原来的 rubygems.org

现在没有连接到日本了,就是本地服务器的,如果你连不通 ruby.taobao.org 的话,你就该查查你的网络问题了。

好了。 公司是通过代理上网的,而且需要认证。ubuntu 下需要设置下。 gem install --http-proxy http://username:password@ip:port rails

You need to Sign in before reply, if you don't have an account, please Sign up first.