Updating Rubygems in Leopard (Mac OS 10.5)
After updating my Mac to Leopard (MacOS X 10.5), I noticed I had a couple issues when updating Rubygems. For instance, when running “gem update mongrel_cluster”, I would constantly get build errors. After doing some digging, I found that you need to set ARCHFLAGS to your system type. Here’s how you would update all your rubygems on Leopard:
sudo su [Enter your password] bash export ARCHFLAGS="-arch i386" gem update
Note that you’ll want to change the i386 to the actual architecture you have (my MacBook, for instance, is an Intel processor, while you would want to use “ppc” for non-Intel Macs).
Once I had updated my gems, things started working fine again. For instance, mongrel_cluster was having issues configuring a new project, but after updating the gem using this method, it seemed to be working fine. Hope you find this useful!















Comments(2)
I keep getting this warning..
Please set RUBY_SOURCE_DIR to the source path of ruby 1.8.6 (2007-09-23)!
@rikas: Sounds like you need to set RUBY_SOURCE_DIR to point to your 1.8.6 installation of ruby:
RUBY_SOURCE_DIR=”/path/to/ruby_source” gem update