Skip to content

Instantly share code, notes, and snippets.

@githubmo
Created January 31, 2013 18:01
Show Gist options
  • Save githubmo/4684857 to your computer and use it in GitHub Desktop.
Save githubmo/4684857 to your computer and use it in GitHub Desktop.
Installing Ruby and Ruby on Rails on OSX Mountain Lion
- Install Xcode from the App Store
- Open Xcode, go to preferences > Additional downloads, install Command line tools
- Install Homebrew, the command for installing it can be found at http://mxcl.github.com/homebrew/ under the "Install Homebrew" section
# Install rbenv
brew install rbenv
brew install ruby-build
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
# if you are using a zsh terminal emulation, like OMZ, please use the following line
# instead:
# echo 'eval "$(rbenv init -)"' >> ~/.zshrc
# Install ruby and make it global and the default shell instance
# Please ammend this to whichever ruby version you want to install
rbenv install 1.9.3-p327
rbenv global 1.9.3-p327
rbenv shell 1.9.3-p327
# install rails
gem install rails
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment