[Date Prev][Date Next] [Chronological] [Thread] [Top]

make test failed - How to make it find the BerkeleyDB's lib file?



After building and installing BerkeleyDB 4.1.25, and building OpenLDAP 2.1.12, I ran 'make test' and received the following response:

# make test
cd tests; make test
ln: cannot create ./data: File exists
*** Error code 2 (ignored)
ln: cannot create ./schema: File exists
*** Error code 2 (ignored)
ln: cannot create ucdata/liblunicode: File exists
*** Error code 2 (ignored)
Initiating LDAP tests for BDB...
>>>>> Executing all LDAP tests...
>>>>> Test Directory: .
>>>>> Backend: bdb
>>>>> Starting test000-rootdse ...
running defines.sh
Datadir is ./data
Cleaning up in ./test-db...
Starting slapd on TCP/IP port 9009...
Using ldapsearch to retrieve the root DSE...
11359 Killed
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...
./scripts/test000-rootdse: kill: no such process
ldap_bind: Can't contact LDAP server (81)
>>>>> Test failed
>>>>> ./scripts/test000-rootdse failed (exit 1)
*** Error code 1
make: Fatal error: Command failed for target `test-bdb'
Current working directory /export/home/mjin/openldap-2.1.12/tests
*** Error code 1
make: Fatal error: Command failed for target `test'
#

The ./tests/test-db/master.log showed the following:
ld.so.1: ../servers/slapd/slapd: fatal: libdb-4.1.so: open failed: No such file
or directory

I did find the libdb-4.1.so is in the BerkeleyDB/lib directory.  How could I to make OpenLDAP find this file?

Your help is greatly appreciated.

Ming