Created
January 31, 2013 18:01
-
-
Save githubmo/4684857 to your computer and use it in GitHub Desktop.
Installing Ruby and Ruby on Rails on OSX Mountain Lion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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