[Zope] mysql-python build error

Sophia Grimm sophiagrimm at yahoo.com
Tue Sep 13 12:51:24 EDT 2005


I installed Plone 2.1 from the binary installer at
plone.org and MySQL 4.1 from the binary at mysql.com.
When attempting to build MySQL-python-1.2.0 on MOSX
10.4.2 client, I get this error:

sh: line 1: mysql_config: command not found
sh: line 1: mysql_config: command not found
running build
running build_py
running build_ext
building '_mysql' extension
gcc -bundle -undefined dynamic_lookup
build/temp.darwin-8.2.0-Power_Macintosh-2.3/_mysql.o
-L/usr/local/mysql/include -lz -lmysqld -o
build/lib.darwin-8.2.0-Power_Macintosh-2.3/_mysql.so
/usr/bin/ld: can't locate file for: -lmysqld
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1

Obviously, it's looking for -lmysqld. I don't know
where to change setup.py (or what to change it to) so
this will work. Any tips are appreciated!!

SG


		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com


More information about the Zope mailing list