Last Updated: October 26, 2022
·
2.14K
· dickeyxxx

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

2 Responses
Add your response

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 ·

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 ·