qkfehw
Last Updated: February 25, 2016
·
1.955K
· dickeyxxx
2014 07 31 18.14.34 hdr

Installing Rails on OSX Mavericks

Install homebrew. You should be prompted to install the Xcode Command Line Tools.

$ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"

Make sure it is setup appropriately:

$ brew doctor

You should see: Your system is ready to brew..

Setup rbenv and Ruby 2.0.0:

$ brew install rbenv
$ brew install ruby-build
$ echo 'eval "$(rbenv init -)"' >> ~/.bashrc

ZSH users use ~/.zshrc.

Install bundler and rails:

$ gem install bundler
$ gem install rails
$ rbenv rehash

You should now be good to go!

Try starting here if you're new to Rails: http://guides.rubyonrails.org/getting_started.html#hello-rails-bang

Say Thanks
Respond

2 Responses
Add your response

11130
8e2b996de3842c6ef7e68a82fa5f01f5

The thoughtbot laptop script also now works on Mavericks:

chsh -s /bin/zsh
zsh <(curl -s https://raw.github.com/thoughtbot/laptop/master/mac)

That installs:

  • Bundler
  • Exuberant Ctags
  • Foreman
  • Heroku Toolbelt
  • Hub
  • Homebrew
  • ImageMagick
  • Postgres
  • Qt
  • Rails
  • Rbenv
  • Redis
  • Ruby Build
  • Ruby stable (currently 2.0.0-p353)
  • The Silver Searcher
  • Tmux
  • Watch
over 1 year ago ·
13879
71ab5b3a0c7c24a623fdc72e9c0ca0ae

foolproof Sublime Text symlink (for 'subl .' on the command line) if using homebrew:

ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
over 1 year ago ·