Re: Zope My/SQL Adapter LD_LIBRARY_PATH
Thanks for the tech tip but it did not solve the problem. When I compile "python build.py" I get this error Traceback(innermost last) File ("build.py" l ine 14, in ? import MySQLdb File "MySQLdb.py:, line 19 in ? from _mysql import * Import Error: libmysqlclient.so.6 cannot open shared object file: no such file or directory. If I type the commnd :: # ls -l /usr/local/zope/lib/python/Products/MySQLdb-0.1.2/mysqlclient.so.6 I get mysqlclient.so.6 -> /usr/local/lib/mysql/mysqlclient.so.7 I think this means that I have a proper link to the file!
jfarr@real.com 02/22/00 06:16PM >>> Uh, the path. I'm a newbie so I still don't quite get it. If I type $ set I do not see the LD_LIBRARY_PATH or # "set ". If I use the command #/usr/local/lib/mysql=LD_LIBRARY , I get the same result. What should I do to correct this problem?
LD_LIBRARY_PATH usually isn't set unless you set it. The easiest fix is to create a symbolic link in /usr/local/lib pointing to the libmysqlclient.so.6 file. You'll probably need root access to do this. cd /usr/local/lib ln -s /usr/local/lib/mysql/libmysqlclient.so.6 libmysqlclient.so.6 This assumes the file is in /usr/local/lib/mysql. If you don't have root access: bash: export LD_LIBRARY_PATH=/usr/local/lib/mysql csh: setenv LD_LIBRARY_PATH /usr/local/lib/mysql should work. -jfarr ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Hi! I'm a signature virus. Copy me into your .sig to join the fun! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _______________________________________________ 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 )
participants (1)
-
CURTIS David