[mod_python] mod_python to MySQL

Jorey Bump list at joreybump.com
Fri Apr 15 16:20:41 EDT 2005


Dave Britton wrote:
> What's the best way to connect mod_python to a MySQL database? I can't 
> seem to get MySQL_db to install - it says:
> =======
> gcc -pthread -shared build/temp.linux-i686-2.3/_mysql.o -lmysqlclient 
> -lz -lcrypt -lnsl -lm] -lmysqlclient_r -o build/lib.linux-i686-2.3/_mysql.so
> /usr/bin/ld: cannot find -lmysqlclient
> collect2: ld returned 1 exit status
> error: command 'gcc' failed with exit status 1
> ======

What Linux distribution are you using? Do you have the mysqlclient 
development files installed?


More information about the Mod_python mailing list