Skip to content

Instantly share code, notes, and snippets.

@andrew
Created December 4, 2012 09:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrew/4202180 to your computer and use it in GitHub Desktop.
Save andrew/4202180 to your computer and use it in GitHub Desktop.
Installing Ruby 1.9.3 with rbenv on OS X 10.8 Mountain Lion
  • Install Xcode (App Store)
  • Install developer tools (Xcode preferences > Additional downloads)
  • Install Homebrew
$ brew install rbenv
$ brew install ruby-build
$ echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
$ rbenv install 1.9.3-p327
$ echo "1.9.3-p327" > ~/Sites/PROJECT_NAME/.rbenv-version
$ cd ~/Sites/PROJECT_NAME
$ gem install bundler && rbenv rehash
$ bundle install
$ bundle exec rake db:create:all
$ bundle exec rake db:migrate
$ rails s
# Open http://localhost:3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment