gcc-4.2 failed with exit status 1

后端 未结 8 1116
死守一世寂寞
死守一世寂寞 2020-11-27 17:48

I\'ve been looking for an answer to this issue but I couldn\'t find it, so here it is.

I\'m trying to install Uniconvertor with a setup.py file into a MacOS X Lion (

相关标签:
8条回答
  • 2020-11-27 17:58

    I ran across this issue when installing a python library with pip.

    After running xcode-select --install, I was still getting the issue.

    So I created a symlink from "gcc" to "gcc-4.2" and that worked for me.

    ln -s /Applications/Xcode.app/Contents/Developer/usr/bin/gcc /usr/local/bin/gcc-4.2

    pip install --upgrade pip did not help fix the issue for me.

    The answer by DanFreak didn't help me either, but it did give me the idea for what actually did work for me.

    0 讨论(0)
  • 2020-11-27 18:02

    Try the following:

    1. Install the latest Xcode.
    2. From Xcode's Preferences menu, install the Command Line Tools (Downloads/Components tab).
    0 讨论(0)
  • 2020-11-27 18:02

    I was able to resolve this by downloading one of these: https://github.com/kennethreitz/osx-gcc-installer/releases

    0 讨论(0)
  • 2020-11-27 18:04

    I got this error due to running an outdated version of pip. I ran pip install --upgrade pip and the error went away. Something to consider if you already have xcode command line tools installed and are still getting the error.

    0 讨论(0)
  • 2020-11-27 18:08

    For newer versions of OS X (including macOS), you just need to open up a terminal and type:

    xcode-select --install
    
    0 讨论(0)
  • 2020-11-27 18:12

    I tried @plusjeff answer, but Xcode 4.6 does not create a /Developer folder in the main directory anymore.

    Therefore I sorted it out with a symlink:

    sudo ln -s /Applications/Xcode.app/Contents/Developer /Developer
    

    and it worked!

    I have OSX 10.7.5 installed

    Hope this helps!

    0 讨论(0)
提交回复
热议问题