【讨论】编译openldap遇到的问题

【讨论】编译openldap遇到的问题

#cd db-4.2.52
#cd build_unix
#../dist/configure --prefix=/var/eyou/bdb
#make
#make install

#cd openldap-2.1.29
#env CPPFLAGS="-I/var/eyou/bdb/include" LDFLAGS="-L/var/eyou/bdb/lib"
#./configure --prefix=/var/eyou/openldap --enable-ldbm --enable-bdb --enable-slurpd
##make depend
#make
执行这步操作的时候,出现如下错误:                      #编译到结尾出现错误,这是最后一段的编译程序输出,在最下面是错误提示.

make[2]: *** [apitest] Error 1
make[2]: Leaving directory `/var1/home/yangguilin/openldap/openldap-2.2.19/libraries/libldap'
make[1]: *** [all-common] Error 1
make[1]: Leaving directory `/var1/home/yangguilin/openldap/openldap-2.2.19/libraries'
make: *** [all-common] Error 1







[root@amd openldap-2.2.19]# make test
cd tests; make test
make[1]: Entering directory `/var1/home/yangguilin/openldap/openldap-2.2.19/tests'
make[2]: Entering directory `/var1/home/yangguilin/openldap/openldap-2.2.19/tests'
Initiating LDAP tests for BDB...
Could not locate slapd(
make[2]: *** [bdb-yes] Error 1
make[2]: Leaving directory `/var1/home/yangguilin/openldap/openldap-2.2.19/tests'
make[1]: *** [test] Error 2
make[1]: Leaving directory `/var1/home/yangguilin/openldap/openldap-2.2.19/tests'
make: *** [test] Error 2      
不知道是为什么,会出现上面的错误?      
./configure 的时候出现过错误吗?
用google 找找这个错误类型吧, Just try it !