----- Original Message ----- From: "jensebaer" <jensebaer@hotmail.com> To: "Dale Lance" <DLANCE@kc.rr.com> Sent: Friday, October 13, 2000 2:43 PM Subject: Re: [Zope] Fw: mysqldb
Hi Dale,
put this in your setup or/and setup.in file under ....../lib/python/Products/ZMySQLDA/MySQLdb-0.1.2/
*shared* # Only one line should be uncommented. # Adjust -L and -I as necessary for your local configuration. # If you have dynamic MySQL libraries, they will need to be on your # LD_LIBRARY_PATH at runtime. _mysql _mysqlmodule.c -L/usr/lib/mysql -I/usr/include/mysql -lmysqlclient # Uncomment for Windows #_mysql _mysqlmodule.c -L/mysql/lib/opt -I/mysql/include -lmysqlclient -lwsock32
or may _mysql
_mysqlmodule.c -L/usr/local/lib/mysql -I/usr/local/include/mysql -lmysqlclie
nt
Jens
----- Original Message ----- From: "Dale Lance" <DLANCE@kc.rr.com> To: <zope@zope.org> Sent: Friday, October 13, 2000 1:59 PM Subject: [Zope] Fw: mysqldb
Hi, I am trying to build ZMySQLDA 1.20 mysql has been built successfully on RedHat 7.0 and resides in /usr/local/mysql I have followed the instructions for editing /etc/ld/so/conf adding /usr/local/mysql/lib/mysql /usr/local/mysql/lib /usr/local/mysql to it. (just tomake sure) yet I still get the following error anyone know where mysqlclient is supposed to be?
Dale
gcc -shared _mysqlmodule.o -L/usr/local/mysql/lib -lmysqlclient -o _mysqlmodule.so /usr/bin/ld: cannot find -lmysqlclient collect2: ld returned 1 exit status make: *** [_mysqlmodule.so] Error 1 Traceback (innermost last): File "build.py", line 14, in ? import MySQLdb File "MySQLdb.py", line 19, in ? from _mysql import * ImportError: No module named _mysql
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )