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.

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Python-LDAP-dev mailing list
Python-LDAP-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev

Reply via email to