Ruby on Rails Beta 3 Install on Snow Leopard - file not found

Yolcu picture Yolcu · Apr 25, 2010 · Viewed 12k times · Source

I tried to install the new beta on my system with the command:

sudo gem install rails --pre

but no matter what I tried, I still get this damn error:

Successfully installed rails-3.0.0.beta3
1 gem installed
Installing ri documentation for rails-3.0.0.beta3...
File not found: lib

Since I'm very new to ruby, I really don't know what to do.

How can I finish installing this? Is this installed already? Why does it abort here?

Answer

balupton picture balupton · Oct 20, 2010

All you need to run is gem install rdoc, follow its instructions, then run the install rails command again and you're good. The problem is due to rdoc failing to install when installed with rails, if installed manually it works fine.

Source: http://gist.github.com/565967

^ I had the same problem, and this worked for me.