MySQLdb installation error

hiaips rosedb0 at gmail.com
Tue Aug 15 19:23:10 EDT 2006


Yi Xing wrote:
> Hi,
>
> I met the following error when I tried to install MySQLdb. I had no
> problem installing numarray, Numeric, Rpy, etc.  Does anyone know
> what's the problem? Thanks!
>
> running install
> running build
> running build_py
> creating build
> creating build/lib.darwin-7.9.0-Power_Macintosh-2.4
> copying _mysql_exceptions.py ->
> build/lib.darwin-7.9.0-Power_Macintosh-2.4
> creating build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb
> copying MySQLdb/__init__.py ->
> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb
> copying MySQLdb/converters.py ->
> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb
> copying MySQLdb/connections.py ->
> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb
> copying MySQLdb/cursors.py ->
> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb
> copying MySQLdb/release.py ->
> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb
> copying MySQLdb/times.py ->
> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb
> creating build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb/constants
> copying MySQLdb/constants/__init__.py ->
> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb/constants
> copying MySQLdb/constants/CR.py ->
> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb/constants
> copying MySQLdb/constants/FIELD_TYPE.py ->
> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb/constants
> copying MySQLdb/constants/ER.py ->
> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb/constants
> copying MySQLdb/constants/FLAG.py ->
> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb/constants
> copying MySQLdb/constants/REFRESH.py ->
> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb/constants
> copying MySQLdb/constants/CLIENT.py ->
> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb/constants
> running build_ext
> building '_mysql' extension
> creating build/temp.darwin-7.9.0-Power_Macintosh-2.4
> gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp
> -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall
> -Wstrict-prototypes -I/usr/include/mysql
> -I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4
> -c _mysql.c -o build/temp.darwin-7.9.0-Power_Macintosh-2.4/_mysql.o
> -fno-omit-frame-pointer -arch i386 -arch ppc -pipe
> -Dversion_info="(1,2,1,'final',2)" -D__version__="1.2.1_p2"
> gcc: cannot read specs file for arch `i386'
> error: command 'gcc' failed with exit status 1

What version of OSX are you running?




More information about the Python-list mailing list