Install MySQLdb on Mac OS X (10.3)

TK merman at o2online.de
Thu Feb 10 18:50:26 EST 2005


Hi,

I can't install MySQLdb on Mac OS X (Ver. 10.3) properly. Here's my 
environment:

1. MySQL-python-1.0.0

2. Python 2.3

3. mysql -V

/usr/local/mysql-standard-4.1.9-apple-darwin7.7.0-powerpc/bin/mysql  Ver 
14.7 Distrib 4.1.9, for apple-darwin7.7.0 (po
werpc)


4. platform.platform() -> 'Darwin-7.6.0-Power_Macintosh-powerpc-32bit'


5. python setup.py build
...
running build_ext
building '_mysql' extension
creating build/temp.darwin-7.6.0-Power_Macintosh-2.3
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/usr/local/include/mysql 
-I/usr/local/mysql/include -I/usr/local/mysql/inclu
de/mysql -I/sw/include/mysql 
-I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3 
-c _mysql.c
-o build/temp.darwin-7.6.0-Power_Macintosh-2.3/_mysql.o
_mysql.c: In function `_mysql_ConnectionObject_shutdown':
_mysql.c:1545: error: too few arguments to function `mysql_shutdown'
error: command 'gcc' failed with exit status 1


Can anybody enlighten me?

Thanks for help.

o-o

Thomas



More information about the Python-list mailing list