Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 RHEL 6.5 服务器上安装 python-ldap。我在 Python 2.7.9 上。
我正在使用以下命令进行安装
pip2.7 install python-ldap
编译过程失败并出现很多错误。
有人可以指导我吗?
会话记录位于http://dpaste.com/2BQFWF8
您没有标题lber.h并ldap.h已安装。
lber.h
ldap.h
要找出提供它们的软件包,请运行
yum provides */lber.h */ldap.h
这告诉你你需要安装openldap-devel所以运行yum install openldap-devel
openldap-devel
yum install openldap-devel
我错过了一个包 openldap-devel 。. . 安装这个包解决了这个问题。当遇到此类编译器错误时,始终可以使用以下命令查找丢失的包。
yum provides */lber.h