1
votes

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?

2
What happens when you execute where ruby?Max
"The problems of rvm"? Since you didn't mention rvm again(and you definitely want to be using it), perhaps you could elaborate a bit?Michael Durrant

2 Answers

7
votes

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

gem sources -a https://rubygems.org

should help.

0
votes

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