From: Guillaume S. <gu...@gm...> - 2009-06-03 12:50:52
|
Thanks a lot for the detailed response. I finally fixed this issue. I thought that library_dirs and include_dirs would search /usr/local/lib and /usr/local/include without having to specify these directories. Have a good day ! 2009/6/2 Michael Ströder <mi...@st...> > Guillaume Simard wrote: > > > > I want to build OpenLDAP and Python-LDAP from source. > > However, I can't install Berkeley DB so I installed Open-LDAP with > > > > ./configure --disable-slapd --disable-slurpd > > Yes, that should be sufficient for python-ldap. > > > I then built and installed Python-LDAP. > > > > However, when I try to import, I get > > > > File "/usr/local/lib/python2.6/site-packages/ldap/__init__.py", line > > 22, in <module> > > from _ldap import * > > ImportError: /usr/local/lib/python2.6/site-packages/_ldap.so: undefined > > symbol: ber_pvt_opt_on > > Which platform is that on? Could you please check with > > ldd /usr/local/lib/python2.6/site-packages/_ldap.so > > or a similar tool whether libldap(_r) of your OpenLDAP build is > dynamically linked? > > Did you adjust the parameters 'library_dirs' and 'include_dirs' in > file setup.cfg to point to your OpenLDAP client lib installation before > running python setup.py build? > > > Does Python-LDAP have any dependencies toward the "server" part of > > OpenLDAP ? > > No. > > Ciao, Michael. > |