Ruby on Rails Beta 3 Install on Snow Leopard - file not found
Solution 1
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.
Solution 2
If you're looking to do ruby/rails development on Mac, I'd strongly recommend not using the version of ruby/rubygems shipped with your mac. What I do recommend is:
- Installing homebrew and using that to manage software packages on your mac.
- Install brewbygems, which makes homebrew play nice with rubygems:
gem install brewbygems
- Install rvm and learn to love the different versions of ruby and rvm's gemsets feature:
gem install rvm
Once you've done that you'll have a pretty robust development environment and you should be able to install any version of rails without a problem. Just keep in mind rails 3 works best using ruby 1.9.2 (install with rvm by running rvm install ruby-head
) and is still in beta, meaning it isn't terribly stable and should not be used for anything production grade (yet).
![Admin](/assets/logo_square_200-5d0d61d6853298bd2a4fe063103715b4daf2819fc21225efa21dfb93e61952ea.png)
Admin
Updated on June 05, 2022Comments
-
Admin about 2 years
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: libSince 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?
-
Mark Richman about 14 years
brew install rubygems
=> "Error: No available formula for rubygems" -
Damien Wilson about 14 yearsThanks for pointing that out, I forgot that I had installed rubygems manually. Brewbygems seems to be a better alternative.
-
Drew Stephens over 13 yearsWould you edit this answer to add the actual content of that gist (namely, that
gem install rdoc
is what you need)? -
zengr over 13 yearsplease read before downvoting and commenting. This is a 6 month old question and at that time, the only option was
sudo gem install rails --pre
. But when I posted my answer, rails3 was default and you didn't need to append --pre! -
zengr over 13 years@balupton explanation please?
-
balupton over 13 yearsRunning
sudo gem install rails
two weeks ago caused the exact same problem the asker was experiencing.sudo gem install rails --pre
didn't work either - this is with Rails 3.0.1. Hence the down vote, as all your answer said was do the same thing that's causing the problem and it should work. -
zengr over 13 yearsevery one answered do install rails because, there was no accurate answer as per today's rails distribution.
-
Kevin M over 11 yearsWorked for me on Lion. Thanks!