Chinaunix

标题: 安装openldap-2.3.32时make test出错 [打印本页]

作者: merry_memory    时间: 2007-01-12 14:07
标题: 安装openldap-2.3.32时make test出错
我用的系统是CentOS4.4,已经安装了openldap2.2.13, db4-4.2.52, cyrus-sasl-2.1.19,均是rpm。
现在下载了openldap-2.3.32.tgz,安装过程如下:
tar -zxvf openldap-2.3.32.tgz
cd openldap-2.3.32
./configure
make depend
make
make test
出现错误
wait for 5 seconds for slad start
……
ldap_bind: can't contact LDAP server.(-1)
--------------------------------------------
LD_LIBRARY_PATH已经设置为/usr/lib
----------------------------------------------
是不是db4和sasl也需要重装?
作者: py    时间: 2007-01-12 19:53
错误信息没有发完整
要确认db4的lib路径,并在configure的时候就指明环境变量位置
作者: merry_memory    时间: 2007-01-15 13:13
标题: 安装openldap-2.3.32时make test出错
先安装db-4.3.29.tar.gz和cyrus-sasl-2.1.22.tar.gz,sasl安装在/usr/local下,db安装在/usr/local/Berkeley.4.3中。在/etc/ld.so.conf中添加/usr/local/lib和/usr/local/Berkeley.4.3/lib,执行ldconfig。
安装openldap-2.3.32:进入openldap-2.3.32,
执行env CPPFLAGS="-I/usr/local/include" CPPFLAGS="-I/usr/local/Berkeley.4.3/include" LDFLAGS="-L/usr/local/lib" LDFLAGS="-L/usr/local/Berkeley.4.3/lib" ./configure
执行make depend和make,用make test测试时出现如下信息:
cd tests; make test
make[1]: Entering directory `/tmp/openldap-2.3.32/tests'
make[2]: Entering directory `/tmp/openldap-2.3.32/tests'
Initiating LDAP tests for BDB...
Cleaningup test run directory leftover from previous run.
Running ./scripts/all...
>>>>> Executing all LDAP tests for bdb
>>>>> Starting test000-rootdse ...
running defines.sh
Starting slapd on TCP/IP port 9011...
Using ldapsearch to retrieve the root DSE...
Waiting 5 seconds for slapd to start...
Waiting 5 seconds for slapd to start...
Waiting 5 seconds for slapd to start...
Waiting 5 seconds for slapd to start...
Waiting 5 seconds for slapd to start...
Waiting 5 seconds for slapd to start...
ldap_bind: Can't contact LDAP server (-1)
>>>>> Test failed
>>>>> ./scripts/test000-rootdse failed (exit 1)
make[2]: Leaving directory `/tmp/openldap-2.3.32/tests'
make[1]: Leaving directory `/tmp/openldap-2.3.32/tests'
作者: py    时间: 2007-01-15 19:39
我试了一下,用的db-4.4.20,openldap-2.3.32,系统是debian,在sun的机器上做的测试
没遇到这个问题,CentOS我没用过,不过这个问题一般都是环境变量的问题。
试试把环境变量LD_LIBRARY_PATH设置一下,把/usr/local/Berkeley.4.3/lib加进去。加入后要从configure重新开始。

另外,你系统中原来是否装了bdb? 如果有,很可能是运行时的库文件有冲突。
作者: merry_memory    时间: 2007-01-16 10:05
设置LD_LIBRARY_PATH=/usr/local/BerkeleyDB.4.3/lib
从configure开始,到make test仍然不行。
我的系统上还有db4-4.2.52,是rpm包的,无法删除,有许多其他软件业依赖这个软件。
作者: merry_memory    时间: 2007-01-16 10:14
运行时的库文件是哪些呢?
作者: py    时间: 2007-01-16 11:23
如果系统中的bdb已经是4.2.52了,那就不用装4.3了,4.2.52是很经典的版本,性能比4.3要好。一直以来也是最稳定的。
作者: merry_memory    时间: 2007-01-16 14:16
问题解决了,但是请版主不要生气!
我的iptables设置中没有允许本机访问这一条。
iptables -I INPUT -i lo -j ACCEPT
加上上一条后make test成功!
让版主费心了!谢谢啦!:wink:
作者: merry_memory    时间: 2007-01-16 14:28
问题解决了,但是请版主不要生气!
我的iptables设置中没有允许本机访问这一条。
iptables -I INPUT -i lo -j ACCEPT
加上上一条后make test成功!
让版主费心了!谢谢啦!:wink:
作者: py    时间: 2007-01-16 20:12
原帖由 merry_memory 于 2007-1-16 14:28 发表
问题解决了,但是请版主不要生气!
我的iptables设置中没有允许本机访问这一条。
iptables -I INPUT -i lo -j ACCEPT
加上上一条后make test成功!
让版主费心了!谢谢啦!:wink:

问题解决了就好




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2