hi, i keep getting this error no mather what i try: <traceback> ZMySQLDA Import Traceback Traceback (innermost last): File "/usr/local/Zope-2.0.1-src/lib/python/OFS/Application.py", line 393, in import_products product=__import__(pname, global_dict, global_dict, silly) File "lib/python/Products/ZMySQLDA/__init__.py", line 106, in ? File "/usr/local/Zope-2.0.1-src/lib/python/Products/ZMySQLDA/DA.py", line 108, in ? from db import DB File "/usr/local/Zope-2.0.1-src/lib/python/Products/ZMySQLDA/db.py", line 106, in ? import _mysql, regex, sys ImportError: ld.so.1: python: fatal: libmysqlclient.so.6: open failed: No such file or directory </traceback> the file 'libmysqlclient.so.6' does exist, in /usr/local/lib/mysql. do I need to put it in an environment variable? and how do I do this if I run Zope with PCGI? Maarten Slaets KPNQwest Belgium Contact info: http://www.fonky.com/vcard/MaartenSlaets/
On Tue, 12 Oct 1999, Slaets, Maarten wrote:
import _mysql, regex, sys ImportError: ld.so.1: python: fatal: libmysqlclient.so.6: open failed: No such file or directory </traceback>
the file 'libmysqlclient.so.6' does exist, in /usr/local/lib/mysql. do I need to put it in an environment variable?
No, you don't. But add it to ld.so search path. Do as root: echo /usr/local/lib >> /etc/ld.so.conf ldconfig Then restart Zope. I assuming you run linux. Other OSes require different approaches. Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN.
If you have root access you can edit /etc/ld.so.conf and add the path to libmysqlclient.so.6, in your case you need to add /usr/local/lib/mysql to the end of the file. Then run ldconfig. then restart zope That should fix the problem -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Slaets, Maarten Sent: Tuesday, October 12, 1999 10:15 AM To: 'zope@zope.org' Subject: [Zope] ZMySQLDA error hi, i keep getting this error no mather what i try: <traceback> ZMySQLDA Import Traceback Traceback (innermost last): File "/usr/local/Zope-2.0.1-src/lib/python/OFS/Application.py", line 393, in import_products product=__import__(pname, global_dict, global_dict, silly) File "lib/python/Products/ZMySQLDA/__init__.py", line 106, in ? File "/usr/local/Zope-2.0.1-src/lib/python/Products/ZMySQLDA/DA.py", line 108, in ? from db import DB File "/usr/local/Zope-2.0.1-src/lib/python/Products/ZMySQLDA/db.py", line 106, in ? import _mysql, regex, sys ImportError: ld.so.1: python: fatal: libmysqlclient.so.6: open failed: No such file or directory </traceback> the file 'libmysqlclient.so.6' does exist, in /usr/local/lib/mysql. do I need to put it in an environment variable? and how do I do this if I run Zope with PCGI? Maarten Slaets KPNQwest Belgium Contact info: http://www.fonky.com/vcard/MaartenSlaets/ _______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope (Related lists - please, no cross posts or HTML encoding! To receive general Zope announcements, see: http://www.zope.org/mailman/listinfo/zope-announce For developer-specific issues, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
On Tue, 12 Oct 1999, Slaets, Maarten wrote:
the file 'libmysqlclient.so.6' does exist, in /usr/local/lib/mysql. do I need to put it in an environment variable? and how do I do this if I run Zope with PCGI?
Another possible solution is to relink _mysql against the static libmysqlclient.a. To do this, you need to edit the Setup.in which comes with MySQLdb and add modify the flags so that it uses the static library. Then you don't need to worry about libmysqlclient.so being on your load path. Be sure to rm Setup before rebuilding. If you don't already know, there is a new release (as of last night) of MySQLdb (version 0.1.1). You can get it at: http://starship.python.net/crew/adustman -- andy dustman | programmer/analyst | comstar.net, inc. telephone: 770.485.6025 / 706.549.7689 | icq: 32922760 | pgp: 0xc72f3f1d
participants (4)
-
Andy Dustman -
Oleg Broytmann -
Phil Harris -
Slaets, Maarten