Old habits die hard. Whenever i upgrade to a new OS i like to do a clean install and OS X Lion was no different1. Everything went smoothly until i tried to install an older version of ruby in RVM (ree 1.8.7). Then the shit hit the fan. After some digging i realized the issues were because Xcode 4.2 only installs LLVM GCC which doesn’t play nicely with some older open source packages. There are a plethora of solutions online simply telling me to set my CC environment variable to /usr/bin/gcc-4.2 except — since i did a clean install and installed Xcode 4.2 as the first version on this machine — i had no non-llvm gcc. The solution after some digging through the homebrew wiki was a stand-alone OS X installer for GCC designed to free developers from the hefty download size of a full Xcode install (and for that brief period where Apple lost its mind and tried to charge for Xcode).
1: For those interested it couldn’t be easier, just follow these instructions from Mashable.