CarterRabasa.com

How to Install Rails on Mac OS X Lion


You know that new-car smell a computer has when it’s just been unboxed and you’re booting it up for the first time? That smell always make me think: it’s time to set-up development environments!

Here’s a simple script I put together to install Ruby on Rails on Mac OS X Lion based on instructions that Alain Beauvois posted to Stack Overflow. It requires that you’ve already installed Xcode. Hope you find this helpful!

#!/bin/sh
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
source ~/.bash_profile
rvm install 1.9.2
rvm --default 1.9.2
gem update
gem install rails