Domainr’s new development environment — Installing GCC 4.2, Ruby 1.9.3 & gem dependencies on Mac OS X Lion
We’re almost done with Domainr’s infrastructural overhaul: we’re moving from Python & Django on App Engine to Ruby 1.9.3 and Rails 3.1 — we’ll discuss the reasons for this in a later post.
We ran into a few development environment hiccups while working on the port, so Cameron made this gist to automate setting up our general dependencies. The last mile just connects our Ruby application server to Nginx’s reverse proxy. Here are some highlights:
- Use the
--with-gcc=clangflag in order to install Ruby 1.9.3 via RVM on Mac OS X Lion. - You may need gcc-4.2 (not to be confused with XCode 4.2) for database drivers or gems that don’t build properly under clang/llvm, so he’s included a homebrew formula to download, compile and install it.
Here’s the gist:

