Step 1: Install Xcode
- Open the App Store (located in the dock)
- Search for ‘Xcode’ and install
- Open ‘Xcode’ and select Preferences (⌘,)
- On the ‘Downloads’ tab install the ‘Command Line Utilities’
Step 2: Install XQuartz
- Browse to http://xquartz.macosforge.org/landing/
- Download the latest DMG (2.7.2 or newer) and run the XQuartz.pkg
Step 3: Install Everything
- From Terminal: curl -sL goo.gl/gfdqL | bash