gcc-4.2 failed with exit status 1
Solution 1:
Try the following:
- Install the latest Xcode.
- From Xcode's Preferences menu, install the Command Line Tools (Downloads/Components tab).
Solution 2:
I was able to resolve this by downloading one of these: https://github.com/kennethreitz/osx-gcc-installer/releases
Solution 3:
For newer versions of OS X (including macOS), you just need to open up a terminal and type:
xcode-select --install
Solution 4:
Try sudo python setup.py install
.
Command line utilities will not ask you to escalate privileges and so must be run in sudo
mode when the situation requires it (e.g., library installation into a global location).