From: John M. C. <jm...@xm...> - 2009-03-25 15:45:05
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000099"> <br> <br> Jeffrey Zelt wrote:<br> <snip><br> <blockquote cite="mid:F8E...@MX..." type="cite"> <pre wrap=""> The install seemed to go OK, but when I try to import the Sybase module in a Python interpreter, I see the following exception: </pre> </blockquote> <snip><br> <blockquote cite="mid:F8E...@MX..." type="cite"> <pre wrap="">As you can see, it is complaining that it cannot find the shared library "libsybtcl.so". I have looked on my machine and there is a copy of libsybtcl.so in both of these directories: /opt/sybase/OCS-15_0/lib/ /opt/sybase/OCS-15_0/devlib/ </pre> </blockquote> I'd guess, off hand, that neither of those directories is in the dynamic library path unless you're logged in as sybase (and have ensured that your .bashrc [or appropriate file] includes a call to source /opt/sybase/SYBASE.sh [or the equivalent if you use the Korn shell]).<br> <br> Now, you might also simply add those directories to the system dynamic library path:<br> (I think this is pretty universal across different Linux versions, but you can check via man ldconfig.) Create a file called (for instance) /etc/ld.so.conf.d/sybase.conf with these two lines:<br> <pre wrap="">/opt/sybase/OCS-15_0/lib/ /opt/sybase/OCS-15_0/devlib/ </pre> Then run ldconfig. You should be in business. <br> <br> Alternatively, you could add soft links to libsybtcl.so in the lib directories used by Python (or just in /usr/lib ).<br> <br> HTH!<br> <br> JMC<br> </body> </html> |