Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
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

This was an issue with documentation, the gem itself was installed properly, to avoid reporting error use:

gem install rails --no-ri --no-rdoc
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.