not able to install rails

Hi,

When I was trying to install rails by giving the command "gem install rails" , i got the below error-

ERROR: http://rubygems.org/ does not appear to be a repository ERROR: Could not find a valid gem 'rails' (>= 0) in any repository

Can you please tell me how to install rails .

Thanks, Anuj

:

Hi,

When I was trying to install rails by giving the command "gem install

rails" , i got the below error-

install gem as ‘root’ user or use ‘sudo’ grm install

use: sudo gem install rails