【发布时间】:2011-09-15 11:59:44
【问题描述】:
尝试在窗户上安装导轨。下载最新的 ruby exec 并安装它,下载,解压的 rails。在 gem install rails 之后,我感到害怕
ERROR: Could not find a valid gem 'rails' (>= 0) in any repository
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
Errno::ETIMEDOUT: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. - connect(2) (http://rubygems.org/latest_specs.4.8.gz)
到目前为止我做了什么:
检查了我的代理(我在公司代理后面),添加了 -p 选项、--http-proxy 和代理 URL 的所有可能变体,但无济于事
尝试删除/添加除 rubygems.org 之外的其他来源,也不起作用
已下载并解压的 rails 源,似乎也无法安装它
这非常令人沮丧并且变得非常烦人。我应该提到我别无选择,只能使用 windows
【问题讨论】:
-
这可能对你有帮助 -> stackoverflow.com/questions/2238340/…
-
基本上是代理开关的变种,我已经尝试过了
标签: ruby-on-rails ruby gem