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
@rwilcox similar story here - I need to be able to compile software that used the Mac SDK so couldn't use the OS X GCC package. Using the new Apple Command Line Tools package failed because the llvm-gcc compiler doesn't work with legacy versions of ruby like REE which I needed for existing sites. It took the best part of two days to work out that I needed to install XCode 4.1 and then XCode 4.3 - which is 4GB of downloading. Then there's the time that all that compiling takes - I want to see a Rails.app that allows you to install pre-built binaries of dependencies like webservers, databases, gems, etc. It's the 21st century, we don't need to compile stuff.