我试图从源代码安装 mysql-python 并且编译似乎会出售,直到出现此错误:
>running build_ext
>
>building '_mysql' extension
>
>ccreating build/temp.macosx-10.7-intel-2.7
>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,4,'beta',4) -D__version__=1.2.4b4 -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 -Wno-null-conversion -Os -g -fno-strict-aliasing ->arch i386
>
>cc1: error: unrecognized command line option "-Wno-null-conversion"
>
>error: command 'llvm-gcc-4.2' failed with exit status 1