|
From: Jeffrey Z. <Jef...@q-...> - 2009-03-25 13:09:51
|
Having failed at installing python-sybase on Windows, I decided to give
it a go on Linux (Ubuntu 8.10).
I think I have *almost* succeeded, but it does not "quite" work. I hope
someone can give me a pointer to get me going.
What I have done is:
1. Installed Sybase ASE 15.02 Express Edition (ase1502_xe_linux.tgz)
2. Installed the header files for Python 2.5
3. Installed python-sybase (with "python setup.py install" as root)
The install seemed to go OK, but when I try to import the Sybase module
in a Python interpreter, I see the following exception:
jeffreyz@jeffreyz-Ubuntu-8:~$ python
Python 2.5.2 (r252:60911, Oct 5 2008, 19:24:49)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more
information.
>>> import Sybase
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "build/bdist.linux-i686/egg/Sybase.py", line 11, in <module>
File "build/bdist.linux-i686/egg/sybasect.py", line 7, in <module>
File "build/bdist.linux-i686/egg/sybasect.py", line 6, in
__bootstrap__
ImportError: libsybtcl.so: cannot open shared object file: No such
file or directory
>>>
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 do not understand what is wrong.
1. Was there, in fact, a problem with the build of python-sybase?
If so, please indicate how I can fix this problem.
2. Was the build OK, but I need to configure something else after the
build
(so that it finds libsybtcl.so)? If so, please indicate what I can
do.
Many thanks in advance. I think I am getting close, but I will be stuck
without a little help.
Jeffrey Zelt
QFree ASA
|