Python-ldap and client-only OpenLDAP

Guillaume Simard guisim at gmail.com
Wed Jun 3 14:29:50 CEST 2009


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 <michael at stroeder.com>

> 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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20090603/560e353e/attachment.html>


More information about the python-ldap mailing list