Install GCC
Download the version that matches your version of Mac. In the top menu click the apple, and then "About this Mac". If it says Version 10.6.x
download the 10.6 version. Otherwise download the 10.7-v2 file (use this one even if you're running a version beyond 10.7).
Run this file