免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4640 | 回复: 3
打印 上一主题 下一主题

[ldap] 安装openldap在make test失败!!具体说明请看 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-01-08 15:35 |只看该作者 |倒序浏览
防火墙也清除了,全新的系统
失败的情况,我第一天安装都正常,第二天我重新删除安装就失败,因为其他的原因,我也重新安装了新的系统.linux 2.6.18-92.el5,安装还是出错.
安装方法如下:
已经添加/usr/local/BerkeleyDB.4.7/lib  到ld.so.conf,而且ldconfig -v 也看见了.

   env CPPFLAGS="-I/usr/local/BerkeleyDB.4.7/include" LDFLAGS="-L/usr/localBerkeleyDB.4.7/lib" ./configure --prefix=/usr/local/openldap --enable-ldbm
make depend
make都正常
但是在make test就出错.

[root@XXXX openldap-2.3.24]# make test
cd tests; make test
make[1]: Entering directory `/usr/local/src/openldap-2.3.24/tests'
make[2]: Entering directory `/usr/local/src/openldap-2.3.24/tests'
Initiating LDAP tests for BDB...
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...
Using ldapsearch to retrieve the cn=Subschema...
Using ldapsearch to retrieve the cn=Monitor...
dn:
objectClass: top
objectClass: OpenLDAProotDSE
structuralObjectClass: OpenLDAProotDSE
configContext: cn=config
namingContexts: o=OpenLDAP Project,l=Internet
monitorContext: cn=Monitor
supportedControl: 1.3.6.1.4.1.4203.1.9.1.1
supportedControl: 2.16.840.1.113730.3.4.18
supportedControl: 2.16.840.1.113730.3.4.2
supportedControl: 1.3.6.1.4.1.4203.1.10.1
supportedControl: 1.2.840.113556.1.4.319
supportedControl: 1.2.826.0.1.334810.2.3
supportedControl: 1.2.826.0.1.3344810.2.3
supportedControl: 1.3.6.1.1.13.2
supportedControl: 1.3.6.1.1.13.1
supportedControl: 1.3.6.1.1.12
supportedExtension: 1.3.6.1.4.1.4203.1.11.1
supportedExtension: 1.3.6.1.4.1.4203.1.11.3
supportedFeatures: 1.3.6.1.1.14
supportedFeatures: 1.3.6.1.4.1.4203.1.5.1
supportedFeatures: 1.3.6.1.4.1.4203.1.5.2
supportedFeatures: 1.3.6.1.4.1.4203.1.5.3
supportedFeatures: 1.3.6.1.4.1.4203.1.5.4
supportedFeatures: 1.3.6.1.4.1.4203.1.5.5
supportedLDAPVersion: 3
vendorName: The OpenLDAP Project <http://www.openldap.org/>
entryDN:
subschemaSubentry: cn=Subschema

dn: cn=Subschema
objectClass: top
objectClass: subentry
objectClass: subschema
objectClass: extensibleObject
cn: Subschema

dn: cn=Monitor
objectClass: monitorServer
structuralObjectClass: monitorServer
cn: Monitor
description: This subtree contains monitoring/managing objects.
description: This object contains information about this server.
description: Most of the information is held in operational attributes, which
must be explicitly requested.
creatorsName:
modifiersName:
createTimestamp: 20090108072521Z
modifyTimestamp: 20090108072521Z
monitoredInfo: OpenLDAP: slapd 2.3.24 (Jan  8 2009 15:25:01)
entryDN: cn=Monitor
subschemaSubentry: cn=Subschema
hasSubordinates: TRUE

>>>>> Test succeeded
>>>>> ./scripts/test000-rootdse completed OK.
>>>>> waiting 10 seconds for things to exit

>>>>> Starting test001-slapadd ...
running defines.sh
Running slapadd to build slapd database...
Starting slapd on TCP/IP port 9011...
Using ldapsearch to retrieve all the entries...
Waiting 5 seconds for slapd to start...
./scripts/test001-slapadd: line 43:  5749 段错误               $SLAPD -f $CONF1 -h $URI1 -d $LVL $TIMING > $LOG1 2>&1
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...
./scripts/test001-slapadd: line 53: kill: (5749) - 没有那个进程
ldapsearch failed (1)!
>>>>> ./scripts/test001-slapadd failed (exit 1)
make[2]: *** [bdb-yes] 错误 1
make[2]: Leaving directory `/usr/local/src/openldap-2.3.24/tests'
make[1]: *** [test] 错误 2
make[1]: Leaving directory `/usr/local/src/openldap-2.3.24/tests'
make: *** [test] 错误 2
我找了很久也没有找到错误的地方,希望那位大侠帮忙,谢谢!

[ 本帖最后由 Mysillygirl 于 2009-1-8 15:38 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2009-01-08 16:52 |只看该作者
虽然可以直接skip make test 安装以后也可以正常启动slapd,为什么我第一次安装就可以make test,第二次就失败......................

论坛徽章:
0
3 [报告]
发表于 2009-04-11 22:36 |只看该作者
我也在make test时失败了,
查了config.log 中有找不到 ac_monexistent.h 等的错误信息,
我用的是hp-ux

我又重新做了一遍,在configure时又报: BerkereyDB not avaible

楼主怎么解决问题的?

论坛徽章:
0
4 [报告]
发表于 2009-04-12 11:26 |只看该作者
编译失败的话,建议大家还是用redhat自带的好了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP