首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >尝试安装Pyramid_ldap时出错

尝试安装Pyramid_ldap时出错
EN

Stack Overflow用户
提问于 2015-02-09 15:59:21
回答 1查看 402关注 0票数 0

我正在尝试使用"easy_install“安装pyramid_ldap。我得到了这个错误。

代码语言:javascript
复制
Searching for pyramid-ldap
Best match: pyramid-ldap 0.1
Processing pyramid_ldap-0.1-py2.7.egg
pyramid-ldap 0.1 is already the active version in easy-install.pth

Using /usr/local/lib/python2.7/dist-packages/pyramid_ldap-0.1-py2.7.egg
Processing dependencies for pyramid-ldap
Searching for python-ldap
Reading http://pypi.python.org/simple/python-ldap/
Best match: python-ldap 2.4.19
Downloading https://pypi.python.org/packages/source/p/python-ldap/python-ldap-2.4.19.tar.gz#md5=b941bf31d09739492aa19ef679e94ae3
Processing python-ldap-2.4.19.tar.gz
Running python-ldap-2.4.19/setup.py -q bdist_egg --dist-dir /tmp/easy_install-XveA_W/python-ldap-2.4.19/egg-dist-tmp-z6mjwF
defines: HAVE_SASL HAVE_TLS HAVE_LIBLDAP_R
extra_compile_args: 
extra_objects: 
include_dirs: /opt/openldap-RE24/include /usr/include/sasl /usr/include
library_dirs: /opt/openldap-RE24/lib /usr/lib
libs: ldap_r
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/controls.py (for module ldap.controls) not found
file Lib/ldap/extop.py (for module ldap.extop) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
warning: no files found matching 'Makefile'
warning: no files found matching 'Modules/LICENSE'
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/controls.py (for module ldap.controls) not found
file Lib/ldap/extop.py (for module ldap.extop) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/controls.py (for module ldap.controls) not found
file Lib/ldap/extop.py (for module ldap.extop) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
In file included from Modules/LDAPObject.c:9:0:
Modules/errors.h:8:18: fatal error: lber.h: No such file or directory
compilation terminated.
error: Setup script exited with error: command 'gcc' failed with exit status 1

我也尝试过使用pip包管理器来安装同样的包,但是没有用。请帮帮忙。

EN

回答 1

Stack Overflow用户

发布于 2015-02-11 20:56:49

正如artemdevel所指出的,如果我们正确地安装了指定的依赖项,这个错误就会得到解决。在这种情况下,需要先安装python-ldap包。

票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/28405179

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档