[英]“gem install rails” fails on Windows
I am trying to manually install rails, but have encountered the following error: 我正在尝试手动安装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)
How can this be solved? 如何解决呢?
The steps I followed so far: 到目前为止,我遵循的步骤:
dir dk.rb
目录dk.rb
ruby dk.rb init红宝石dk.rb初始化
ruby dk.rb install红宝石dk.rb安装
I am right now faced with this problem 我现在正面临这个问题
Reset DNS cache solved that problem for me (Run "ipconfig /flushdns" from cmd shell) 重置DNS缓存为我解决了该问题(从cmd shell运行“ ipconfig / flushdns”)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.