Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 am trying to install rails 3.0.1 on ubuntu 10.10. I am getting this error towards the end when i execute this command sudo gem install rails --version 3.0.1

Installing ri documentation for rails-3.0.1...
File not found: lib

How can i resolve this issue? Thanks

share|improve this question
For people with this issue here is the entire solution which presents it in a structured way.… – rogerstone Feb 18 '11 at 5:40
up vote 1 down vote accepted

No need to specify version number if it is the latest in the repository, just using:

sudo gem install rails

should work.

If that's a no-go, try manually reinstalling RDoc:

sudo gem install rdoc-data
sudo rdoc-data --install
sudo gem rdoc --all --overwrite
share|improve this answer
Thanks.The first command didn't work out.I executed the commands to manually install rdoc and then used 'apt-get install rails' and then executed gem install rails. After this when i executed 'rails -v' Rails rails 3.0.4.(I guess this means rails is installed :) ) – rogerstone Feb 18 '11 at 5:26
@roger thanks for the update, glad it worked for you :) – John T Feb 18 '11 at 16:40

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.