我一直在寻找这个问题的答案,但我找不到它,所以它就是这样。使用gcc-4.2失败,退出状态为1
我试图用一个setup.py文件转换成的MacOS X Lion的安装Uniconvertor(Python的2.7.2):
python setup.py install
然后我收到以下错误代码:
running install
running build
running build_py
running build_ext
building 'uniconvertor.app.modules.streamfilter' extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.6.sdk -g -O2 -DNDEBUG -g -O3 -arch i386 -arch x86_64 -DMAJOR_VERSION=1 -DMINOR_VERSION=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/modules/filter/streamfilter.c -o build/temp.macosx-10.6-intel-2.7/src/modules/filter/streamfilter.o
unable to execute gcc-4.2: No such file or directory
error: command 'gcc-4.2' failed with exit status 1
我在Developer/usr/bin文件夹中查找'gcc-4.2'文件,但它不在那里,但有一个'llvm-gcc.4.2'文件,这让我想我应该从'gcc -4.2'改为'llvm-gcc.4.2'。
我是一个新的Mac,我不知道如何解决它。
谢谢。
编辑:
我尝试使用:
cd /Developer/usr/bin
ln -s llvm-gcc-4.2 gcc-4.2
而且我得到多一点的进步,但随后一个新的错误:
running install_lib
creating /Library/Python/2.7/site-packages/uniconvertor
error: could not create '/Library/Python/2.7/site-packages/uniconvertor': Permission denied
可能是什么的这个“事业没有权限'?
我正在运行它到一个管理员帐户,它并没有要求输入密码或任何东西。
再次感谢您。
从Xcode 4.2开始,Xcode不再包含gcc-4.2。通常,llvm-gcc-4.2或clang是一个合适的替代品,但您可能想与项目的维护人员联系,询问为什么构建系统显式请求gcc-4.2而不是使用默认系统编译器。 – servn
看到这个问题的答案:http://stackoverflow.com/questions/10238458/cant-install-orange-error-command-clang-failed-with-exit-status-1 希望它有帮助! –