* At the [http://developer.apple.com/downloads downloads page of Apple Developer], download the latest "Command line tools".

17

17

* Install them.

18

19

Note well: XCode 5 doesn't come with a real GCC, and currently GHC builds most easily if you use GCC rather than clang. Note also that Xcode 5 installs a "gcc" thats actually an alias for Clang. You will need to install a real GCC, and make sure the gcc in your path points to a real gcc, or alternatively points to one of the "clang-wrapper" scripts that are available. Again, using a real GCC will be much simpler.

18

20

19

21

In both cases, you need to [https://developer.apple.com/programs/register/ register] as an Apple developer first (free).