29 10 / 2011
Installing REE, Rails, XCode on Lion 10.7
A quick guide to installing Ruby Enterprise Edition, Rails, etc. on Mac OS X Lion. The main problem is that the latest XCode (4.2) ships with a messed up version of gcc. So:
1. Install XCode 4.2 from the App Store.
2. That actually places an App in Applications called ‘Install XCode’. Run that.
3. Install OSX GCC from here: https://github.com/kennethreitz/osx-gcc-installer This is a much better version of gcc, plus associated libs.
4. Install RVM:
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
5. Install REE:
sudo CC=/usr/bin/gcc-4.2 rvm install ree
6. Use REE:
rvmsudo rvm use ree --default
7. (Optional) Install brew:
ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
8. Rails, etc.
rvmsudo gem install rails
That’s it! Leave a comment if you have any better advice, or questions.
Permalink 6 notes