6 steps to set up a rails development environment on OS X:
- install Apple Command Line Tools
- install homebrew[1]:
/usr/bin/ruby -e "$(/usr/bin/curl -fksSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
- install rvm:
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
- install ruby
rvm install 1.9.3
- install rails
gem i rails
- start a project
rails new myproject
[1] Use brew
command to install whatever database engine you need, ie brew install sqlite
I could be wrong, but I believe the command line tools Apple provides work on 10.7.3 only and have problems compiling other versions of Ruby. And to get those tools you have to get a developer account and get stuff. Minor annoyance but an annoyance nonetheless.
And honestly, even this is too much. Since we Rails folks are all about the automation, why does this need 8 steps? Why not one? In fact I think there are some scripts in the rvm repo that get this started :)