[python-ldap] Error in Installing python-ldap - RHEL 6.5 Server - Python 2.7.9

Michael Ströder michael at stroeder.com
Wed Feb 11 09:56:28 CET 2015


Anurag Chourasia wrote:
> I am installing python-ldap on a RHEL 6.5 Server. I am on Python 2.7.9
> 
> I am using the following command to installl
> 
> pip2.7 install python-ldap
> 
> The compilation process fails with lots of errors. Could someone please
> guide me? The session transcript is at  http://dpaste.com/2BQFWF8

You don't have the necessary include files (library headers) installed as
indicated by these lines in your build log:

-------------------------- snip --------------------------
    In file included from Modules/LDAPObject.c:9:
    Modules/errors.h:8:18: error: lber.h: No such file or directory
    Modules/errors.h:9:18: error: ldap.h: No such file or directory
-------------------------- snip --------------------------

Please look at the build prerequisites section in the docs:

http://www.python-ldap.org/doc/html/installing.html#prerequisites

I guess you have to install the *-devel packages of OpenLDAP, OpenSSL and
Cyrus-SASL. I don't know the exact RPM package names on your platform though.
Installing the OpenLDAP -devel package should pull in all others based on the
RPM dependencies.

Ciao, Michael.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4252 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20150211/1b70841d/attachment.bin>


More information about the python-ldap mailing list