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

hello.



My system are redhat 9.0, and my packets are cyrus-sasl-2.1.20, db-4.3.27.NC, openldap-2.2.24 .
I installed sasl and then db, and all is ok.
Then i add "/usr/local/BerkeleyDB.4.3/lib" into /etc/ld.so.conf, and execute the ldconfig command.
Then add a env variable: LD_LIBRARY_PATH=/usr/local/BerkeleyDB.4.3/lib .
Then i configure the openldap source code in the command line: #env CPPFLAGS="-I/usr/local/BerkeleyDB.4.3/include" LDFLAGS="-L/usr/local/BerkeleyDB.4.3/lib" ./configure --enable-ldbm, and then make depend, make, and all is ok.
when i make test, there is a wrong and the output is like this:
make[1]: Entering directory `/root/openldap-2.2.24/tests'
make[2]: Entering directory `/root/openldap-2.2.24/tests'
Initiating LDAP tests for BDB...
Cleaning up 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...
./scripts/test000-rootdse: line 48: kill: (2975) - No such process
ldap_bind: Can't contact LDAP server (-1)
>>>> Test failed
>>>> ./scripts/test000-rootdse failed (exit 1)
make[2]: *** [bdb-yes] Error 1
make[2]: Leaving directory `/root/openldap-2.2.24/tests'
make[1]: *** [test] Error 2
make[1]: Leaving directory `/root/openldap-2.2.24/tests'
make: *** [test] Error 2 .
I look at the log file: openldap-2.2.24/tests/testrun/slapd.1.log
it is like this:
@(#) $OpenLDAP: slapd 3.2.24 (Apr 12 2005 14:32:48) $
root@localhost.localdomain:/root/software/openldap/openldap-2.2.24/servers/slapd
daemon_init: ldap://localhost:9011/
daemon_init: listen on ldap://localhost:9011/
daemon_init: 1 listeners to open...
ldap_url_parse_ext(ldap://localhost:9011/)
daemon: initialized ldap://localhost:9011/
daemon_init: 1 listeners opened
slapd init: initiated server.
slap_sasl_init: SASL library version mismatch: expected 2.1.20, got 2.1.10
slapd shutdown: freeing system resources.
slapd stopped.
connections_destroy: nothing to destroy.


The sasl library 2.1.20 is what i have just installed, and it is in /usr/local/lib/sasl2. The 2.1.10 is the original file in the system,and it is in /usr/lib/sasl2. I remove the old /usr/lib/sasl2 directory and make a link: link -s /usr/local/lib/sasl2 /usr/lib/sasl2, and i have done this before i configure the openldap packet.
What is the matter? Could you tell me the solution? Thank you very much.