user1571530
user1571530

Reputation:

ERROR: Could not find a valid gem 'rails' (>= 0) in any repository

Trying to install rails 3.2.7. Still stuck with the problems of rvm etc.

gem install rails

fetches me following :-

ERROR: Could not find a valid gem 'rails' (>= 0) in any repository

How can I get rails 3.2.7 up and working in my system?

Upvotes: 1

Views: 15850

Answers (2)

iltempo
iltempo

Reputation: 16012

gem sources should at least contain https://rubygems.org. If not

gem sources -a https://rubygems.org

should help.

Upvotes: 7

Michael Durrant
Michael Durrant

Reputation: 96594

Use rvm gem install rails

I just did it and it worked for me.

If you don't have rvm, then:

  1. If you don't have ruby:

Install RVM and ruby:

$ curl -L https://get.rvm.io | bash -s stable --ruby

or

Additionally with rails: $ curl -L https://get.rvm.io | bash -s stable --rails

Upvotes: 0

Related Questions