From: Jeffrey Z. <Jef...@q-...> - 2009-03-30 06:37:40
|
Bingo! That was the tip I needed. I have now successfully connected to one of our Sybase servers with python-sybase. By the way, it was only necessary for me to place the line: /opt/sybase/OCS-15_0/lib/ in a file that ldconfig could process. It was _not_ necessary to include the second line: /opt/sybase/OCS-15_0/devlib/ Thank you for your help, as well as to others who also tried to assist me! Regards, Jeffrey Zelt Q-Free ASA The install seemed to go OK, but when I try to import the Sybase module in a Python interpreter, I see the following exception: <snip> 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/ 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]). Now, you might also simply add those directories to the system dynamic library path: (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: /opt/sybase/OCS-15_0/lib/ /opt/sybase/OCS-15_0/devlib/ Then run ldconfig. You should be in business. |