I’ve always distrusted the ruby and rails installs on my Mac (oOS X
10.6.3) – sudo gem cleanup can’t seem to get rid of old gem versions
(lots of Gem::InstallError: cannot uninstall).
Because of that, I don’t trust the rails beta3 install I just
completed. Here’s the story:
I’ve always distrusted the ruby and rails installs on my Mac (oOS X
10.6.3) – sudo gem cleanup can’t seem to get rid of old gem versions
(lots of Gem::InstallError: cannot uninstall).
Because of that, I don’t trust the rails beta3 install I just
completed. Here’s the story:
I built and installed my own ruby and rubygems, leaving the Apple-
provided installations alone. I used ruby 1.9.1 and gems 1.3.6.
Then I followed the procure outlined to install the gems, then rails
beta3 itself. Again I got the complaint about the missing lib
directory. I followed common advice to create the lib directory in …/
gems/rails-3.0.0.beta3, then installed the rails gem once again – to
successful completion. There’s nothing actually in the lib
directory – I can only hope that’s as it should be. There are enough
references to this problem that I’ll assume there’s either some
dependance or some packaging issue, and that the Rails team has it on
their radar for a fix.
I am having this same problem, but I am using Ruby 1.8.7 and an
updated version of RubyGems. Does anyone have an answer for this
issue? I know that Rails 3 does not work at all with 1.9.1, so I tried
1.9.2 and it did not seem to work either. So I decided to go with the
older version.
Installing ri documentation for rails-3.0.0.beta3…
File not found: lib
The gems/rails-3.0.0.beta3 directory has a bin directory with a 20
character file named “rails.” The other gem directories seem fuller.
Are you using RVM by any chance? If you are, you cannot use ‘sudo’ when
installing the gems. I had this issue at first (kept saying File not
found: lib) and then I noticed that RVM installs things as you, not as
sudo. Therefore I just used the command:
‘gem install rails --pre’ or just ‘gem install rails’ (since Rails 3 has
been released)
and I got rid of the ‘File not found: lib’ issue. Hope this helps.
I’ve always distrusted the ruby and rails installs on my Mac (oOS X
10.6.3) –
I’ve noticed this distrust in a lot of people. Can’t see any reason for
it myself. Apple’s Ruby has always worked fine for me. I’ll be
installing 1.9.2 and RVM at some point, but until then I’ll save my
effort and disk space and not build my own Ruby. If that costs me geek
brownie points, so be it. :D.
sudo gem cleanup can’t seem to get rid of old gem versions
(lots of Gem::InstallError: cannot uninstall).
Never seen that. Find and fix the problem instead of just “distrusting”
your development environment.
Again: Apple’s Ruby is perfectly trustworthy. If it’s not working for
you, the problem is most likely elsewhere (perhaps a reinstallation of
Apple’s dev tools is in order…).
I had the same problem on ubuntu and I guess that’s because I first
installed ruby using ‘sudo apt-get install ruby’ – then I tried rvm
which messed up versions and ended up installing multiple versions of
ruby components.
I did ‘sudo apt-get remove ruby’ and ‘sudo apt-get remove gem’ (and did
a few more manual clearing). Then, I followed Hartl’s tutorial:
And now it works!!!
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.