To install everything in an automated fashion, we will use Homebrew, which is a package manager for Mac OS X:
- Go to Apple Developers Page (you may need to register),
- Download the XCode Command Line Tools and XQuartz and install them,
- Open a terminal,
- Execute
ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go)
.