Reputation: 371
I tried to install mysql-python from source and the compile seemed to go sell till this error:
>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
Upvotes: 0
Views: 183
Reputation: 21028
First looks like you are trying to install a beta, unless that is what you are looking for, I would highly suggest you install using pip
The error you seem to be having has to deal with gcc not understanding one of the command line options.
Here is a link to the latest version of the lib you are trying to install
https://pypi.python.org/pypi/MySQL-python/1.2.4
I would try that.
or remove the invalid option from the installer.
Upvotes: 1