python-ldap 2.4.4 has hardcoded paths to a developers local system, in the setup.cfg file::
library_dirs = /opt/openldap-RE24/lib
include_dirs = /opt/openldap-RE24/include /usr/include/sasl
extra_compile_args = -g
libs = ldap_r lber sasl2 ssl crypto
This means you cannot install python-ldap from pypi, because when you run ``easy_install python-ldap``, you import the setup.cfg in your setup.py and add the library dirs and gcc looks in /opt/openldap-RE24 for the headers and libs, which on any linux install will be in /usr/include and /usr/lib.
Downloading the source tarball, and commenting out the offending block in setup.cfg and ``python setup.py build`` worked without error.
Log in to post a comment.