Install Ruby On Rails On Mac OSX Mavericks ( 10.9 )

1. Command Line Tools

1
$ xcode-select --install

2. Homebrew

1
2
$ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)"
$ brew doctor

3. RVM

1
$ \curl -sSL https://get.rvm.io | bash

4. Ruby 1.9.3

1
2
3
$ brew install gcc46 # ruby 1.9.3 required
$ rvm install 1.9.3
$ rvm use 1.9.3 --default # ruby 1.9.3 as default

5. MySQL

1
2
3
$ brew install mysql
$ ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents
$ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
0%