[python-sybase] Re: Problem with FreeTDS - undefined symbol: cs_dt_info

Andrew McNamara andrewm at object-craft.com.au
Tue, 14 Dec 2004 13:44:12 +1100


>  File "/usr/lib/python2.3/site-packages/Sybase.py", line 20, in ?
>    from sybasect import *
>ImportError: libct.so.2: cannot open shared object file: No such file
>or directory
>-----------------------
>
>The output for "ldd /usr/lib/python2.3/site-packages/sybasect.so" is:
>
>-----------------------
>        libct.so.2 => not found
>        libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00a03000)
>        libc.so.6 => /lib/tls/libc.so.6 (0x00374000)
>        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00929000)
>-----------------------
>
>But the file "libct.so.2" is at "/usr/local/lib/". Here is the output
>for "ll /usr/local/lib/libct.so*":

You might want to try:

    LD_LIBRARY_PATH=/usr/local/lib python -ic "import Sybase"

-- 
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/