Install MySQLdb on Mac OS X (10.3)

T

TK

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
 
S

Skip Montanaro

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

TK> 1. MySQL-python-1.0.0

...

Try a more recent version of mysql-python. I think 1.1.7 is the latest.

Skip
 
T

TK

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

TK> 1. MySQL-python-1.0.0

...

Try a more recent version of mysql-python. I think 1.1.7 is the latest.

Skip


Hi Skip,
> Try a more recent version of mysql-python. I think 1.1.7 is the latest.


It now works with MySQL-python-1.2.0

And I have to set:

export
PATH=$PATH:/usr/local/mysql-standard-4.1.9-apple-darwin7.7.0-powerpc/bin

Thanks for the hint.

o-o

Thomas
 
S

Sion Arrowsmith

Skip Montanaro said:
Try a more recent version of mysql-python. I think 1.1.7 is the latest.

1.2.0 -- it appears to be moving extremely rapidly (especially given
how long it was at 0.9.2 -- although "Waiting for MySQL 4.1 to become
stable" would be a good explanation for that).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top