Makre sure your home directory does not have a space in it or gcc will crap itself
3. Install Homebrew[http://mxcl.github.com/homebrew/]
$ brew install git
$ cd
$ git clone git://github.com/sstephenson/rbenv.git .rbenv
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_login
$ echo 'eval "$(rbenv init -)"' >> ~/.bash_login
$ mkdir -p ~/.rbenv/plugins
$ cd ~/.rbenv/plugins
$ git clone git://github.com/sstephenson/ruby-build.git
$ rbenv install 1.9.3-p392
$ rbenv global 1.9.3-p392
$ rbenv shell 1.9.3-p392
brew install postgres --no-python
initdb /usr/local/var/postgres -E utf8
See for memory issues: http://willbryant.net/software/mac_os_x/postgres_initdb_fatal_shared_memory_error_on_leopard
$ brew install heroku-toolbelt
$ brew install imagemagick
$ gem update --system
$ sudo gem install rdoc
$ sudo gem install rails bundler pg
$ sudo gem install hub
$ curl get.pow.cx | sh
$ cd ~/.pow
$ ln -s ~/Sites/storyberg
16. Install Quartz[http://xquartz.macosforge.org/downloads/SL/XQuartz-2.7.4.dmg]
$ brew install mongodb
$ mkdir -p ~/Library/LaunchAgents
$ cp /usr/local/Cellar/mongodb/2.2.2-x86_64/homebrew.mxcl.mongodb.plist ~/Library/LaunchAgents/
$ launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
If POW loads the wrong ruby version you might have to add the following to ~/.powconfig export PATH="/usr/local/Cellar/rbenv/0.3.0/bin:/Users/micdijkstra/.rbenv/shims:/Users/micdijkstra/.rbenv/bin:$PATH"