简体   繁体   English

由于许多安装错误,无法在RHEL 6.5上使用pip2.7安装python-ldap

[英]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. 我在RHEL 6.5服务器上安装python-ldap。 I am on Python 2.7.9. 我在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 会议记录在http://dpaste.com/2BQFWF8

You don't have the headers lber.h and ldap.h installed. 您没有安装标头lber.hldap.h

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 这告诉你需要安装openldap-devel所以运行yum install openldap-devel

I was missing a package openldap-devel . 我错过了一个包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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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