This help site has been deprecated. Please send your requests to support@rubygems.org

Trying to install rails

Chris B's Avatar

Chris B

09 Apr, 2018 06:42 PM

While trying to install rails using $ gem install rails I get the error "Could not find a valid gem 'rails' (>= 0), here is why:
          Unable to download data from https://rubygems.org/ - timed out (https://api.rubygems.org/specs.4.8.gz)"

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)
    timed out (https://api.rubygems.org/specs.4.8.gz)"

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!

  1. Support Staff 1 Posted by sonalkr132 on 22 Apr, 2018 12:55 PM

    sonalkr132's Avatar

    hi Chris B,

    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?

Discussions are closed to public comments.
If you need help with RubyGems.org please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

20 Oct, 2020 07:13 PM
20 Oct, 2020 11:11 AM
13 Oct, 2020 06:14 PM
13 Oct, 2020 04:27 AM
06 Oct, 2020 08:22 AM