run time problem with python-ldap-2.0.0pre04

Steven Graham sgraham at wugaa.com
Mon Mar 4 20:51:59 CET 2002


You need to make sure that the path to liblber.so.2 is in your
LD_LIBRARY_PATH environment variable. So if liblber.so.2 is living in
/usr/local/lib, LD_LIBRARY_PATH should at the miniumum look like the following:

#echo $LD_LIBRARY_PATH
/usr/local/lib


=======================
Steven Graham
sgraham at wugaa.com
=======================

On Mon, 4 Mar 2002, Ling Jiang wrote:

> Could you please point out what I am missing?
> In python, when you run import ldap, you get the error message similar
> to the following. I put the test code (from README) to test.py and the
> following is what I got:
>
> Traceback (most recent call last):
>   File "/tmp/test.py", line 2, in ?
>     import ldap
>   File "/usr/local/lib/python2.1/site-packages/ldap/__init__.py", line
> 5, in ?
>     from _ldap import *
> ImportError: ld.so.1: /usr/local/bin/python: fatal: liblber.so.2: open
> failed: No such file or directory
>
> OS: Solaris 2.6
> Platform: sun4u sparc SUNW,Ultra-4
> openssl:    0.9.6 24 Sep 2000
> OpenLDAP: 2.0.23 (openldap-stable-20020215.tgz)
> Python: 2.1.1
>
> Thanks.
>
> L Jiang
>
>
> 


More information about the python-ldap mailing list