-
Download and install Xcode from the App Store.
-
Download and install command line tools on Xcode. On the menu go to Preferences > Downloads > Install Command Line Tools
-
Install homebrew like so:
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
-
Install git with:
brew install git
-
Install rvm with:
curl -L get.rvm.io | bash -s stable --auto
-
Open a new terminal window and verify if rvm was installed properly. Do:
rvm requirements
and it should give you a wall of text starting with `Requirements for osx...
-
There are still a couple more dependencies needed listed after doing
rvm requirements
. Install them by doing:brew update brew tap homebrew/dupes brew install bash curl autoconf automake apple-gcc42 libtool pkg-config openssl readline libyaml sqlite libxml2 libxslt libksba`
-
Install ruby.
rvm install 1.9.3-p392
Installing other rubies are easy. You can list them all by doing
rvm list known
. -
Install Rails.
gem install rails
And that's it! Easy as pie.