Skip to content

Instantly share code, notes, and snippets.

@nouphet
Forked from chsh/building-rails-env.txt
Created August 15, 2012 11:26
Show Gist options
  • Save nouphet/3359318 to your computer and use it in GitHub Desktop.
Save nouphet/3359318 to your computer and use it in GitHub Desktop.
Note for preparing Rails env on Mac OS X.
* 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 ~/.bashrc
* 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