我正在尝试手动安装rails,但遇到以下错误:
c:\Ruby193\bin>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)
如何解决这个问题?
到目前为止我采取的步骤:
dir dk.rb
ruby dk.rb init
ruby dk.rb install
答案 0 :(得分:-1)
我现在面对这个问题
重置DNS缓存为我解决了这个问题 (从cmd shell运行“ipconfig / flushdns”)