I just recently started getting back into Rails now that the new Agile
Development with Rails book (3rd edition) came out.
I had an old, out-of-date installation of ruby and gem so I tried to
the advice found at:
which recommended completely removing the Apple installed ruby and gem.
After doing so, I then installed using MacPort per the instructions.
Installation went okay until attempting to update Rubygems per this
sudo gem update --system
This resulted in an error:
/opt/local/bin/gem:14: undefined method `ruby_version’ for Gem:Module
I googled for a solution and found this solution:
However after trying that solution I got yet another error:
gem install -l rubygems-update-1.2.0.gem
initialize': uninitialized constant Gem::CommandManager (NameError) from /opt/local/bin/gem:24:innew’
So I am wondering: Why is it so (apparently) difficult to update ruby
gem on Mac OS X? Is it just me? Or others having this same problem? This
struggle to get ruby and gem up to date seems antithetical to the ease
which rails in general seems to work. This kind of makes me wish for an
‘Instant Rails’ solution for Mac OS X!
Does anyone here have an up-to-date solution for installing ruby 1.8.7
gem 1.3.1 from scratch on Mac OS X that works?
View this message in context:
Sent from the RubyOnRails Users mailing list archive at Nabble.com.