tag:help.rubygems.org,2010-01-19:/discussions/problems/31064-trying-to-install-railsRubyGems.org: Discussion 2018-04-22T12:55:48Ztag:help.rubygems.org,2010-01-19:Comment/450606702018-04-09T18:42:12Z2018-04-09T18:42:15ZTrying to install rails<div><p>While trying to install rails using $ gem install rails I get the error "Could not find a valid gem 'rails' (>= 0), here is why:<br>
Unable to download data from <a href="https://rubygems.org/">https://rubygems.org/</a> - timed out (<a href="https://api.rubygems.org/specs.4.8.gz">https://api.rubygems.org/specs.4.8.gz</a>)"</p>
<p>I've tried adding the rubygems site to my source but it's already there. I then tried to update using $ gem update --system which gave me the error "ERROR: While executing gem ... (Gem::RemoteFetcher::UnknownHostError)<br>
timed out (<a href="https://api.rubygems.org/specs.4.8.gz">https://api.rubygems.org/specs.4.8.gz</a>)"</p>
<p>I've tried all of the solutions that came up on Google but nothing is working. I'm also a total noob so there is a very real chance I screwed something up. Look for any guidance! Thanks!</p></div>Chris Btag:help.rubygems.org,2010-01-19:Comment/450606702018-04-22T12:55:46Z2018-04-22T12:55:46ZTrying to install rails<div><p>hi Chris B,</p>
<p>Looks like api.rubygems.org is not resolvable/reachable from your host. Can you please try to download spec file using wget or curl and see what error comes up?</p></div>sonalkr132