Created
August 13, 2012 15:58
-
-
Save chsh/3342170 to your computer and use it in GitHub Desktop.
Note for preparing Rails env on Mac OS X.
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 | |
App Store -> Search Xcode -> Download -> Install | |
* Install Command line tools | |
Launch Xcode -> Preferences -> Downloads -> Install command line tools | |
* Install Homebrew | |
$ ruby <(curl -fsSk https://raw.github.com/mxcl/homebrew/go) | |
* Install rbenv ruby-build | |
$ brew install rbenv | |
$ brew install ruby-build | |
$ brew install readline | |
$ brew link readline | |
* Install rbenv environment settings. | |
Insert eval "$(rbenv init -)" into ~/.bash_profile | |
* Install ruby | |
Relaunch Terminal. | |
$ CONFIGURE_OPTS="--with-readline-dir=/usr/local" rbenv install 1.9.3-p194 | |
$ rbenv global 1.9.3-p194 | |
* Install bundler | |
$ gem i bundler | |
$ rbenv rehash | |
* Install rails | |
$ gem i rails | |
$ rbenv rehash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment