Setting up Ruby on Rails on Ubuntu 11.04

I have a lot of new in developing applications for rails. I am trying to configure everything on Ubuntu 11.04. I installed RVM (1.8.7 and 1.9.2) and installed rubigems. But when I try to set the rails using

sudo gem install rails

I get this error:

/usr/local/lib/site_ruby/1.8/rubygems/dependency.rb:247:in `to_specs': Could not find rails (>= 0) amongst [] (Gem::LoadError)
    from /usr/local/lib/site_ruby/1.8/rubygems/dependency.rb:256:in `to_spec'
    from /usr/local/lib/site_ruby/1.8/rubygems.rb:1182:in `gem'
    from /usr/bin/rails:18

Any help would be greatly appreciated. Thank you so much in advance!

+3
source share
2 answers

RVM, sudo gem. , , , RVM HOME root, , .
, , , RVM Rails Ubuntu.

+6

RubyGems RVM, , , . ruby, RubyGems . , .bashrc .bash_profile RVM. ?

+1

All Articles