2013年9月17日星期二

OSX10.7 安装mysql-python报错cc1: error: unrecognized command line option

Mac OS X 10.7 安装 mysql-python 报错

cc1: error: unrecognized command line option "-Wno-null-conversion"
error: Setup script exited with error: command 'llvm-gcc-4.2' failed with exit status 1

应该是 llvm-gcc-4.2 的编译器不识别 option 导致的



http://stackoverflow.com/questions/16127493/cc1-error-unrecognized-command-line-option-wno-null-conversion-within-insta


将 mysql_config 里面的相关 option 去掉再次编译就可以了 



Try to Remove cflags -Wno-null-conversion -Wno-unused-private-field in
/usr/local/mysql/bin/mysql_config.
like:
cflags="-I$pkgincludedir  -Wall   -Os -g -fno-strict-aliasing -DDBUG_OFF -arch x86_64 "

没有评论:

发表评论