简体   繁体   中英

Command 'llvm-gcc-4.2' failed with exit status 1

I'm installing a package through pip and it's failing due to the following error:

Running setup.py install for pylibmc
    running install
    running build
    running build_py
    running build_ext
    building '_pylibmc' 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 -arch i386 -arch x86_64 -pipe -DUSE_ZLIB -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _pylibmcmodule.c -o build/temp.macosx-10.7-intel-2.7/_pylibmcmodule.o -fno-strict-aliasing
    In file included from _pylibmcmodule.c:34:

...

error: command 'llvm-gcc-4.2' failed with exit status 1

Other related questions ( What is the best way to setup Django on os X 10.7 Lion? , gcc-4.2 failed with exit status 1 , and Why am I getting the error: command 'llvm-gcc-4.2' failed with exit status 1 ) all say I should install the latest Xcode and the Command Line Tools, so I did that, but the problem persists.

Are there any other solutions? I don't want to use https://github.com/kennethreitz/osx-gcc-installer because I frequently use Xcode for other projects.

我必须冲煮brew install libmemcached然后才能安装pylibmc。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM