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 Aditya Prakash on 22 Apr, 2018 12:55 PM

    Aditya Prakash'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?

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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