2012-09-19 204 views
0
easy_install-2.5 python-ldap 
Searching for python-ldap 
Reading http://pypi.python.org/simple/python-ldap/ 
Reading http://www.python-ldap.org/ 
Best match: python-ldap 2.4.10 
Downloading http://pypi.python.org/packages/source/p/python-ldap/python-ldap-2.4.10.tar.gz#md5=a15827ca13c90e9101e5e9405c1d83be 
Processing python-ldap-2.4.10.tar.gz 
Running python-ldap-2.4.10/setup.py -q bdist_egg --dist-dir /tmp/easy_install-dplmGE/python-ldap-2.4.10/egg-dist-tmp-ZlXBub 
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:4:0: 
Modules/common.h:10:20: fatal error: Python.h: No such file or directory 
compilation terminated. 
error: Setup script exited with error: command 'gcc' failed with exit status 1 
aptitude search python2.5 
i python2.5                         - An interactive high-level object-oriented language (version 2.5)              
v python2.5-celementtree                      -                              
v python2.5-cjkcodecs                       -                              
v python2.5-ctypes                        -                              
v python2.5-dialog                        -                              
v python2.5-elementtree                      -                              
v python2.5-iplib                        -                              
i A python2.5-minimal                       - A minimal subset of the Python language (version 2.5)                 
v python2.5-plistlib                       -                              
v python2.5-profiler                       -                              
v python2.5-reverend                       -                              
v python2.5-wsgiref     
+0

我有同樣的問題 - 答案[這裏](http://stackoverflow.com/a/6941608/214149)爲我整理了一些東西。 – Mac

回答

1

它看起來像你需要的Python 2.5的頭文件。您可以在python2.5-dev或類似的地方找到它們的突觸。

+0

我無法找到python2.5的開發包...看一看。 – sorin

+0

@sorin - 我可能會嘗試安裝一些愚蠢的東西,比如'python2.5-celementtree',並希望aptitude會獲取你需要的其他頭文件。當然,你總是可以尋找不同的回購。不幸的是,'python2.5'已經很老了,它的軟件包維護人員對它的關注值得懷疑。是否有限制爲python2.5的原因? – mgilson

+0

爲了在我的軟件包上運行測試,我必須保持2.5的兼容性。 – sorin