读书人

python-ldap安装失败解决方法

发布时间: 2013-02-15 15:46:56 作者: rapoo

python-ldap安装失败解决办法
extra_compile_args: extra_objects: include_dirs: /opt/openldap-RE24/include /usr/include/sasl /usr/includelibrary_dirs: /opt/openldap-RE24/lib /usr/liblibs: ldap_rfile Lib/ldap.py (for module ldap) not foundfile Lib/ldap/controls.py (for module ldap.controls) not foundfile Lib/ldap/extop.py (for module ldap.extop) not foundfile Lib/ldap/schema.py (for module ldap.schema) not foundwarning: no files found matching 'Makefile'warning: no files found matching 'Modules/LICENSE'file Lib/ldap.py (for module ldap) not foundfile Lib/ldap/controls.py (for module ldap.controls) not foundfile Lib/ldap/extop.py (for module ldap.extop) not foundfile Lib/ldap/schema.py (for module ldap.schema) not foundfile Lib/ldap.py (for module ldap) not foundfile Lib/ldap/controls.py (for module ldap.controls) not foundfile Lib/ldap/extop.py (for module ldap.extop) not foundfile Lib/ldap/schema.py (for module ldap.schema) not foundIn file included from Modules/LDAPObject.c:18:/usr/include/sasl/sasl.h:349: 警告:函数声明不是一个原型Modules/ldapcontrol.c: In function ‘encode_assertion_control’:Modules/ldapcontrol.c:352: 警告:隐式声明函数 ‘ldap_create_assertion_control_value’Modules/constants.c: In function ‘LDAPinit_constants’:Modules/constants.c:155: 错误:‘LDAP_OPT_DIAGNOSTIC_MESSAGE’ 未声明 (在此函数内第一次使用)Modules/constants.c:155: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其Modules/constants.c:155: 错误:所在的函数内只报告一次。)Modules/constants.c:365: 错误:‘LDAP_CONTROL_RELAX’ 未声明 (在此函数内第一次使用)error: Setup script exited with error: command 'gcc' failed with exit status 1[

?

执行了

?

yum install opnldap

yum install openldap24-libs

yum install openldap-clients

yum install openldap-devel

yum install openssl-devel

?

再按装就ok了

?参考:http://community.zenoss.org/message/64114

?

?

?

?

读书人网 >perl python

热点推荐