I've seen bits and pieces of a solution as noted in my previous posts, but they really didn't fix the problem. And of course, there's the issue that's been reported elsewhere that upgrading to Snow Leopard can wreak havoc on a development setup.
So following Eriks' instructions, here's what I did:
- I wiped my system clean and installed Snow Leopard from scratch. You may be able to just do an upgrade, but I chose to go with a clean system.
- Install the XCode Developer Tools that come with Snow Leopard (or download the latest version from the Apple website. Warning: it’s a big file).
- Remove all the pre-installed rubygems from your system. You can do this using the “gem uninstall” command, or brute force. I chose the brute force method, but only after creating a copy before I did the deletion, just in case. Once I knew it worked, I got rid of my copies.
rm -rf /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/*
rm -rf /Library/Ruby/Gems/1.8/*
- Install MacPorts (see the MacPorts installation page).
- Make sure you’re running MacPorts version 1.8.2 (type:
port version
). If not, run the command:
sudo port selfupdate
- Install the MacPorts version of ruby itself:
sudo port install ruby
- Install the MacPorts version of rubygems:
sudo port install rb-rubygems
- Install the MacPorts version of git:
sudo port install git-core
- Upgrade to the latest version of rubygems:
sudo gem update --system
- Make sure you’re running rubygems version 1.3.5 (type:
gem -v
). If not, run the command:update_rubygems
- Install all the gems you want (rails, heroku, etc.). They will be installed into /opt/local/lib/ruby/gems/
Enjoy...
No comments:
Post a Comment