Ok, so my desktop computer blew up. The power supply died and in the process, it screwed up my hard drive. Rather than restoring from backup, I decided to do a fresh install to clean out old crap.
To my shock, when I tried to install Homebrew, it failed miserably even though I installed Xcode and Commandline Tools. It appears that simply running
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
does not work! Instead, I get ugly
e:178: syntax error, unexpected ':', expecting $end
Then again, it hit me that I was in fact running Ruby that came with Mac OS X. In order to install Homebrew on fresh install of Mountain Lion, here’s what you need to do:
>curl -O https://raw.github.com/mxcl/homebrew/go
So simple, yet it’s a little gotcha that can drive you nuts.
Once you have brew, then you can install RVM and all other good stuff.