error: Setup script exited with error: command 'llvm-gcc-4.2' failed with exit status 1
Here's what worked for me:
- Install the latest version of XCode from the App Store
- Inside XCode, go to Preferences -> Downloads -> Components
- download the Command Line Tools