[DB-SIG] MySQLdb-0.9.2 release candidate 1

Gerhard Häring gerhard.haering@gmx.de
Fri, 21 Jun 2002 23:09:41 +0200


* Markus Jais <info@mjais.de> [2002-06-21 22:40 +0200]:
> hello
> I have a problem compiling it on my Red Hat 7.3 system with
> python 2.2.1 and mysql 3.23.49 which comes with Red Hat 7.3
> 
> I type 
> python setup.py build
> and I get this error:
> 
> gcc -shared build/temp.linux-i686-2.2/_mysql.o -L/usr/lib/mysql 
> -L/usr/local/lib/mysql -L/usr/local/mysql/lib/mysql -lmysqlclient_r -lz -o 
> build/lib.linux-i686-2.2/_mysql.so
> /usr/bin/ld: cannot find -lmysqlclient_r
> collect2: ld returned 1 exit status
> 
> the mysql libs are under
> /usr/lib/mysql
> 
> but there is no libmysqlclient_r  , there is only libmysqlclient (without
> the "_r")
> 
> what can I do ?

Read the setup.py :-)

thread_safe_library = YES

Change this to NO.

> I think I have installed all mysql stuff that was on the Red Hat CD's

Maybe the *ead*at MySQL binaries aren't that good if they even don't
include the thread-safe libraries. You could compile MySQL yourself or
get RPMs at the MySQL site to get the thread-safe libraries.

Gerhard
-- 
mail:   gerhard <at> bigfoot <dot> de       registered Linux user #64239
web:    http://www.cs.fhm.edu/~ifw00065/    OpenPGP public key id AD24C930
public key fingerprint: 3FCC 8700 3012 0A9E B0C9  3667 814B 9CAA AD24 C930
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))