John said:
Check to see that your PATH has not been changed by a recent
installation of something (such as a new Python, etc...)
Here's my path:
PATH=/Library/Frameworks/Python.framework/Versions/Current/bin:/
Library/boost_1_34_1/tools/jam/src/bin.macosxx86:/bin:/sbin:/usr/
bin:/usr/sbin:/usr/local/mysql/bin:.
I don't think I installed anything recently, so I don't think my PATH
changed.
Not many people are using /usr/lib/ for Ruby on OS X 10.4
Usually, it's /usr/local/ or /opt/something if you use MacPorts/
DarwinPorts
I'm using the ruby that came pre-installed:
ruby 1.8.2 (2004-12-25) [universal-darwin8.0]
hmm...
your error was
Updating version of RubyGems to 1.0.1
ERROR: While executing gem ... (Errno::ENOENT)
No such file or directory -
/usr/lib/ruby/gems/1.8/gems/rubygems-update-1.0.1
Looks like there either is an error in the path or something else...
I use the Hivelogic Ruby installation,
it places things in /usr/local
but preserves the system's default Ruby (always a good idea in case
there are things that expect it to be there as part of the standard
OS distribution)
When I look in that default OS X 10.4 directory /usr/lib/ruby/
there is no gems directory.
With my Ruby there is...
/usr/local/lib/ruby jj$ ls
1.8 gems site_ruby
so there should be a lib/ruby/gems/
directory, regardless of the location, but it appears to not exist
with the default Ruby.
You might note that the default Ruby installed on 10.4 has always
been considered fairly broken/wrong.
The one on 10.5 is better but still a bit different from more typical
Ruby installations on *NIXes.
I'd recommend going through the Hivelogic installation tutorial. It's
very straight forward and may offer some insight to how to install
this stuff in good and reliable way.
I know, it takes some time to do it all, and you'll want to use a
more recent version than what is in that tutorial, but you won't
regret it.
You might want to be running at least 1.8.4, I ran that for the last
year and a half, but 1.8.6 is the best yet.
1.9 is still in development though quite useable.