August 1, 2012
Install xCode 4.4+ from Apple or your desired source and install cmd line tools.
If upgrading from a previous version of OS X, update the location of xCode:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
Install XQuartz (not included in xCode or 10.8 anymore):
This will require you to logout and re-login in after install.
Install Homebrew into /usr/local:
It has been recommended to create the folder ‘/usr/local/Cellar’ before hand, due to some bug on homebrew. Once you’ve done that:
ruby -e '$(curl -fsSkL raw.github.com/mxcl/homebrew/go)'
ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go)
Now make sure you can write into /usr/local/Cellar where homebrew installs everything, so:
chown -R $USER /usr/local/Cellar
Install RVM from home directory:
curl -L https://get.rvm.io | bash -s stable
Then reload your shell with RVM.
To see the requirements for your system:
On my fresh OS X 10.8 install I was instructed by RVM to do the following:
brew tap homebrew/dupes
brew install autoconf automake apple-gcc42
rvm pkg install openssl
Install Ruby 1.9.3:
rvm install 1.9.3
If you’ve followed the setps above then you should be fine to continue from here.
Set Ruby 1.9.3 as the system default:
rvm use ruby-1.9.3
Changing the default shell in OS X (bash) to zShell (zsh)
brew install zsh
Verify your path at this point, though it should be /usr/local/bin/zsh if you followed the instructions above on a clean Mountain Lion install.
After you’ll be asked to enter your root password which will then open the default editor within your shell window.
Once inside edit the line labeled ‘Shell’ to match your path to zsh
Open Directory: /Local/Default Shell: /bin/zsh Full Name: MasterControl Office Location: Office Phone: Home Phone:
Save the file and reopen your terminal.