I tried doing the following:

sudo gem install rails

and I always get the error message:

Successfully installed rails-3.0.9
1 gem installed
Installing ri documentation for rails-3.0.9...
file 'lib' not found
Installing RDoc documentation for rails-3.0.9...
file 'lib' not found

How do I fix this?

link|improve this question

71% accept rate
now I am getting ERROR: Error running 'GEM_HOME='/usr/lib/ruby/gems/1.8' GEM_PATH='/usr/lib/ruby/gems/1.8' gem install rails ', please read /home/herlamba/.rvm/log/gem.install.log – EquinoX Aug 10 '11 at 17:07
looking at the log it says: You don't have write permissions into the /usr/lib/ruby/gems/1.8 directory – EquinoX Aug 10 '11 at 17:24
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.