[DB-SIG] MySQLdb build error

Stein M. Eliassen steinme@norway.eu.net
Wed, 22 Dec 1999 01:00:53 +0100


I'm trying to build MySQLdb 0.1.1 on a Slackware 7.0 box with MySQL 3.22.27 and this is the result:
gcc -shared  _mysqlmodule.o  -L/usr/local/lib/mysql/ -lmysqlclient -o _mysqlmodule.so
Traceback (innermost last):
  File "build.py", line 14, in ?
    import MySQLdb
  File "MySQLdb.py", line 19, in ?
    from _mysql import *
ImportError: libmysqlclient.so.6: cannot open shared object file: No such file or directory

I have checked and libmysqlclient.so.6 is in /usr/local/lib/mysql
and MySQL is working since I'm able to use the database with mysqld.

Is there something I have to do with the mysql configuration?
How do I test that libmysqlclient.so.6 is working?