由于许多安装错误,无法在RHEL 6.5上使用pip2.7安装python-ldap(Cannot install python-ldap with pip2.7 on RHEL 6.5 due to many install errors)
我正在RHEL 6.5服务器上安装python-ldap。 我在Python 2.7.9上。
我正在使用以下命令来安装
pip2.7 install python-ldap编译过程失败,出现很多错误。
有人能指导我吗?
会议记录在http://dpaste.com/2BQFWF8
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-ldapThe compilation process fails with lots of errors.
Could someone please guide me?
The session transcript is at http://dpaste.com/2BQFWF8
最满意答案
您没有安装标题lber.h和ldap.h
要找出哪些软件包提供它们,请运行
yum provides */lber.h */ldap.h这告诉你,你需要安装openldap-devel所以运行yum install openldap-devel
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.hThat tells you you need to install openldap-devel so run yum install openldap-devel
更多推荐
发布评论