|
From: Jens V. <je...@zo...> - 2002-02-01 13:38:28
|
michael, hm... very interesting. the lib directory was not in ld.so.conf. i'm=20 surprised it never failed before... now everything seems OK. thanks! jens On Friday, February 1, 2002, at 08:06 , Michael Str=F6der wrote: > Jens Vagelpohl wrote: >> >>>>> import ldap >> Traceback (most recent call last): >> File "<stdin>", line 1, in ? >> File "/usr/local/lib/python2.1/site-packages/ldap/__init__.py", = line=20 >> 5, >> in ? >> from _ldap import * >> ImportError: liblber.so.2: cannot load shared object file: No such = file=20 >> or >> directory >>>>> >> >> i'm on YellowDog linux 2.1 (a redhat 7 clone for mac) with OpenLDAP = 2.0. >> 18 >> and Python2.1.2. the messages from setup.py build and setup.py = compile=20 >> did >> not contain any errors during compilation. >> >> is it just my setup or is there a problem? this worked fine with the >> previous release candidate you put on the sourceforge file list. > > This seems to be a problem with your OpenLDAP 2 shared libs. Check > shared libs with > > $ ldd [Python lib dir]/site-packages/_ldap.so > > Make sure you have either configured /etc/ld.so.conf (invoke > ldconfig after modifications) to contain directory lib/ of your > local OpenLDAP 2 installation or set LD_LIBARY_PATH accordingly. > > If that does help since your on Mac architecture there might be > other subtle problems I don't know of. > > Ciao, Michael. |