- 论坛徽章:
- 0
|
BerkeleyDB4.5装好了,OpenLDAP(openldap-stable-20071118.tgz)也装好了,但是安装python-ldap(2.3.1)却失败了,Python用的2.4.4版本,操作系统是ubuntu6,错误信息如下:
root@ubuntu6s:/home/temp/python-ldap-2.3.1# python setup.py install
extra_compile_args:
extra_objects:
include_dirs: /usr/local/openldap-2.3/include /usr/include/sasl
library_dirs: /usr/local/openldap-2.3/lib
libs: ldap_r lber sasl2 ssl crypto
running install
running build
running build_py
file Lib/ldap.py (for module ldap) 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/schema.py (for module ldap.schema) not found
running build_ext
building '_ldap' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-prototypes -fPIC -DHAVE_LIBLDAP_R -DHAVE_SASL -DHAVE_TLS -DLDAPMODULE_VERSION=2.3.1 -IModules -I/usr/local/openldap-2.3/include -I/usr/include/sasl -I/usr/include/python2.4 -c Modules/LDAPObject.c -o build/temp.linux-i686-2.4/Modules/LDAPObject.o
In file included from Modules/LDAPObject.c:13:
Modules/errors.h:8:18: error: lber.h: No such file or directory
Modules/errors.h:9:18: error: ldap.h: No such file or directory
In file included from Modules/LDAPObject.c:13:
Modules/errors.h:12: error: expected â)â before â*â token
In file included from Modules/LDAPObject.c:15:
Modules/LDAPObject.h:12:2: error: #error Current python-ldap requires OpenLDAP 2.x
In file included from Modules/LDAPObject.c:15:
Modules/LDAPObject.h:23: error: expected specifier-qualifier-list before âLDAPâ
Modules/LDAPObject.h:31: error: expected â)â before â*â token
In file included from Modules/LDAPObject.c:16:
Modules/ldapcontrol.h:12: error: expected â)â before â*â token
Modules/ldapcontrol.h:13: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
Modules/ldapcontrol.h:14: error: expected â)â before â*â token
In file included from Modules/LDAPObject.c:17:
Modules/message.h:11: error: expected â)â before â*â token
Modules/LDAPObject.c:21:18: error: sasl.h: No such file or directory
Modules/LDAPObject.c:29: error: expected â)â before â*â token
Modules/LDAPObject.c: In function âdeallocâ:
Modules/LDAPObject.c:45: error: âLDAPObjectâ has no member named âldapâ
Modules/LDAPObject.c:46: error: âLDAPObjectâ has no member named âvalidâ
Modules/LDAPObject.c:47: error: âLDAPObjectâ has no member named â_saveâ
Modules/LDAPObject.c:47: error: âLDAPObjectâ has no member named â_saveâ
Modules/LDAPObject.c:48: warning: implicit declaration of function âldap_unbind_extâ
Modules/LDAPObject.c:48: error: âLDAPObjectâ has no member named âldapâ
Modules/LDAPObject.c:49: error: âLDAPObjectâ has no member named â_saveâ
Modules/LDAPObject.c:49: error: âLDAPObjectâ has no member named â_saveâ
Modules/LDAPObject.c:50: error: âLDAPObjectâ has no member named âvalidâ
Modules/LDAPObject.c:52: error: âLDAPObjectâ has no member named âldapâ
Modules/LDAPObject.c: In function ânot_validâ:
Modules/LDAPObject.c:68: error: âLDAPObjectâ has no member named âvalidâ
Modules/LDAPObject.c: At top level:
Modules/LDAPObject.c:79: error: expected â)â before â*â token
Modules/LDAPObject.c:106: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
Modules/LDAPObject.c:197: error: expected â)â before â*â token
Modules/LDAPObject.c:209: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
(...略去若干)
Modules/LDAPObject.c:1257: error: âLDAPObjectâ has no member named â_saveâ
Modules/LDAPObject.c:1262: error: âLDAP_SUCCESSâ undeclared (first use in this function)
Modules/LDAPObject.c:1263: error: âLDAPObjectâ has no member named âldapâ
Modules/LDAPObject.c:1263: warning: return makes pointer from integer without a cast
Modules/LDAPObject.c:1218: warning: unused variable ânewpwâ
Modules/LDAPObject.c:1216: warning: unused variable âoldpwâ
Modules/LDAPObject.c:1214: warning: unused variable âuserâ
error: command 'gcc' failed with exit status 1
尝试用apt安装cyrus-imapd,失败
root@ubuntu6s:/home/temp/python-ldap-2.3.1# apt-get install cyrus-imapd
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package cyrus-imapd is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package cyrus-imapd has no installation candidate
然后我去他的网站上去下载了一个,说还需要sasl,又下载了cyrus-sasl-2.1.22.tar.gz,然后make出错
make[2]: *** [digestmd5.lo] Error 1
make[2]: Leaving directory `/home/temp/cyrus-sasl-2.1.22/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/temp/cyrus-sasl-2.1.22'
make: *** [all] Error 2
装一个python-ldap怎么这么麻烦啊
[ 本帖最后由 ffb 于 2007-11-29 17:54 编辑 ] |
|