xcode – 在Mac OS X Lion上缺少llvm-gcc:无法安装mysql-python

xcode – 在Mac OS X Lion上缺少llvm-gcc:无法安装mysql-python,第1张

概述我最近从10.6升级到Mac OS X 10.7. 我决定使用Python 2.7. 但是当我尝试安装MySQLdb模块来运行Django时,它失败了: $sudo pip install MySQL-pythonDownloading/unpacking MySQL-python […] Running setup.py install for MySQL-python bui 我最近从10.6升级到Mac OS X 10.7.

我决定使用Python 2.7.

但是当我尝试安装MysqLdb模块来运行Django时,它失败了:

$sudo pip install MysqL-pythonDownloading/unpacking MysqL-python  […]  Running setup.py install for MysqL-python    building '_MysqL' extension    llvm-gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -Dversion_info=(1,2,3,'final',0) -D__version__=1.2.3 -I/usr/local/MysqL/include -I/System/library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _MysqL.c -o build/temp.macosx-10.7-intel-2.7/_MysqL.o -Os -g -fno-common -fno-strict-aliasing -arch x86_64    unable to execute llvm-gcc-4.2: No such file or directory    error: command 'llvm-gcc-4.2' Failed with exit status 1    Complete output from command /usr/bin/python -c "import setuptools;__file__='~/Sites/gugsm/build/MysqL-python/setup.py';exec(compile(open(__file__).read().replace('\r\n','\n'),__file__,'exec'))" install --single-version-externally-managed --record /tmp/pip-AwMuqj-record/install-record.txt:    running installrunning build[…]building '_MysqL' extensioncreating build/temp.macosx-10.7-intel-2.7llvm-gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -Dversion_info=(1,0) -D__version__=1.2.3 -I/usr/local/MysqL/include -I/System/library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _MysqL.c -o build/temp.macosx-10.7-intel-2.7/_MysqL.o -Os -g -fno-common -fno-strict-aliasing -arch x86_64unable to execute llvm-gcc-4.2: No such file or directoryerror: command 'llvm-gcc-4.2' Failed with exit status 1----------------------------------------

原因是我不再拥有llvm-gcc和gcc二进制文件.

我试图将XCode从3.something升级到4.3.2,但它没有帮助.它是一个简单的应用程序,它不会使用llvm-gcc填充/usr/bin.

我究竟做错了什么?

解决方法 在Xcode 4.3的“首选项”菜单中,选择“下载”,然后安装“命令行工具”. 总结

以上是内存溢出为你收集整理的xcode – 在Mac OS X Lion上缺少llvm-gcc:无法安装mysql-python全部内容,希望文章能够帮你解决xcode – 在Mac OS X Lion上缺少llvm-gcc:无法安装mysql-python所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://www.54852.com/web/1036365.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-24
下一篇2022-05-24

发表评论

登录后才能评论

评论列表(0条)

    保存