gcc-4.2 failed with exit status 1
Try the following:
- Install the latest Xcode.
- From Xcode's Preferences menu, install theCommand Line Tools (Downloads/Components tab).
I was able to resolve this by downloading one of these: https://github.com/kennethreitz/osx-gcc-installer/releases
For newer versions of OS X (including macOS), you just need to open up a terminal and type:
xcode-select --install