Hi all,<br><br>I'm running into a small problem while trying to import Sybase module in python. I've downloaded and installed FreeTDS v0.64 and python-sybase v0.38 on my Ubuntu. I followed other posts and did the following:
<br><br><span style="font-weight: bold;">=> FreeTDS:</span><br> # ./configure --disable-odbc --disable-libiconv<br>--enable-sybase-compat --prefix=/usr/local/freetds<br> # make; make install; make clean<br><br><span style="font-weight: bold;">
=> Sybase python module</span><br> # export SYBASE=/usr/local/freetds<br> # python setup.py build_ext -D HAVE_FREETDS<br><br>However, when I try to import the Sybase module in Python v2.5.1, I'm getting the following error:
<br><br>Traceback (most recent call last):<br> File "<stdin>", line 1, in <module><br> File "/usr/lib/python2.5/site-packages/Sybase.py", line 10, in ?<br> from sybasect import *<br>ImportError:
libct.so.4: cannot open shared object file: No such file or directory<br><br>I have also added "include /usr/local/freetds/lib" to "/etc/ld.so.conf" and running "ldconfig" AND <br>LD_LIBRARY_PATH=/usr/local/lib python -ic "import Sybase" but still no luck.
<br><br>Can anyone help me out? Am I missing something? I see that the file libct.so.4 is under /usr/local/freetds/lib directory but I don't know how to make python realize it's there. I think it's a library linking issue.
<br><br>Any help will be much appreciated!!! Thanks everyone.<br>