Gem install rails not working

I am working on ubuntu and rvm. In any case, I tried to use sudo gem (any command), it does not recognize gem as a command. Also, if I use the gem separately, like:

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

I got this error. I see no reason.

rvm version 1.10.3 ruby ​​version 1.8.7 gem version 1.6.7

What is the possible reason for this?

+3
source share
1 answer

Reinstall all rvm and ruby ​​and gems, solve my problem.

-1
source

All Articles