Could not build MySQLdb on PowerMac (PPC)

T

Ted Zeng

Hi,

I am new to Python. I am trying to build MySQLdb for my PowerPC
PowerMac.
I just downloaded the source last week and tried to build it.
But I got the error messages as follow. I checked and there is no such
files as
mysql_config
mysql.h
my_config.h
....

Did I download the wrong source?

python setup.py build

sh: line 1: mysql_config: command not found
....(same as above for a few lines)
running build
running build_py
copying MySQLdb/release.py -> build/lib.macosx-10.4-fat-2.4/MySQLdb
running build_ext
building '_mysql' extension
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
-fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd
-fno-common -dynamic -DNDEBUG -g -O3
-I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -c
_mysql.c -o build/temp.macosx-10.4-fat-2.4/_mysql.o
-Dversion_info="(1,2,1,'final',2)" -D__version__="1.2.1_p2"
_mysql.c:39:19:_mysql.c:39:19: error: mysql.h: No such file or directory
_mysql.c:40:23: error: my_config.h: No such file or directory
_mysql.c:41:26: error: mysqld_error.h: No such file or directory
_mysql.c:42:20: error: error: mysql.h: No such file or directory
_mysql.c:40:23: error: my_config.h: No such file or directory
errmsg.h: No such file or directory
_mysql.c:41:26:_mysql.c:72: error: parse error before 'MYSQL'
_mysql.c:72: warning: no semicolon at end of struct or union
_mysql.c:75: error: parse error before '}' token
_mysql.c:75: warning: data definition has no type or storage class
_mysql.c:86: error: parse error before 'MYSQL_RES'


Ted Zeng
Adobe Systems Incorporated
 
D

Diez B. Roggisch

Ted said:
Hi,

I am new to Python. I am trying to build MySQLdb for my PowerPC
PowerMac.
I just downloaded the source last week and tried to build it.
But I got the error messages as follow. I checked and there is no such
files as
mysql_config
mysql.h
my_config.h
...

Did I download the wrong source?

You need the mysql development files. You could e.g. use fink to install
mysql and the development files package. On my machine it's called
mysql14-dev.


Diez
 

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,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top