[mod_python] mod_python to MySQL

azurIt azurit at pobox.sk
Sat Apr 16 04:12:04 EDT 2005


hi,
the problem can be also in MySQL version - older versions of 4.0.x 
are not supported and it's even not possible to compile MySQL-python 
(i had the same problem). If you are useing MySQL 4.0.x try to 
upgrade to the latest version (for now it's 4.0.24).

azurIt


> 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?
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
> 

____________________________________
Vsetko o SuperStar
http://superstar.atlas.sk




More information about the Mod_python mailing list