简体   繁体   中英

Cannot install python-ldap with pip2.7 on RHEL 6.5 due to many install errors

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 headers lber.h and ldap.h installed.

To find out what package provides them, run

yum provides */lber.h */ldap.h

That tells you you need to install openldap-devel so run yum install openldap-devel

I was missing a package openldap-devel . . . installation of this package resolved the issue. The following command can always be used to find the missing package when facing compiler errors of this sort.

yum provides */lber.h

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM