[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: question of 'make test':(
> Hi All
> I'm trying to completely install openldap-2.1.6.with BerkeleyDB.4.1.24
> on the linux7.3 (upgraded from linux7.1) I'm at the stage where I run
> "make test".
> but i get the error message:
> ***************************************
> root@zhbi openldap-2.1.6]# make test
> cd tests; make test
> make[1]: Entering directory `/usr/local/openldap-2.1.6/tests'
> ln: `./data': cannot overwrite directory
> make[1]: [test-bdb] Error 1 (ignored)
> ln: `./schema': File exists
> make[1]: [test-bdb] Error 1 (ignored)
> ln: `ucdata/liblunicode': File exists
> make[1]: [test-bdb] Error 1 (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...
> Waiting 5 seconds for slapd to start...
> aiting 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: (1533) - No such process
> ldap_bind: Can't contact LDAP server (81)
>>>>>> Test failed
>>>>>> ./scripts/test000-rootdse failed (exit 1)
> make[1]: *** [test-bdb] Error 1
> make[1]: Leaving directory `/usr/local/openldap-2.1.6/tests'
> make: *** [test] Error 2
> *************************************************************************
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> with the help of some information from the maillist,
> i have :
> <1> update my /etc/ld.so.conf(adding the line
> /usr/local/BerkekeyDB.4.1/lib) <2> run /etc/ldconfig.([root@zhbi etc]#
> ldconfigure)
> <3> then i change the directory into my openldap and run "ldd", i can
> find the library :libdb-4.1.so
> (# ldd ./servers/slapd/slapd
> libdb-4.1.so => /usr/local/BerkeleyDB.4.1/lib/libdb-4.1.so
> (0x40014000) .......)
> <4> and before the configuration ,i have properly set the env including
> CPPFLAGS ,LDFLAGS and LIBRARY_PATH .
>
> **but i still failed to pass the "make test"! it do make me feel
> puzzled.** the /tests/test-db/master.log show the fallowing message:
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> *****************************************************************
>
> @(#) $OpenLDAP: slapd 2.1.6 (Thu Dec 26 15:45:04 CST 2002) $
> root@zhbi:/usr/local/openldap-2.1.6/servers/slapd
> daemon_init: ldap://localhost:9009/
> daemon_init: listen on ldap://localhost:9009/
> daemon_init: 1 listeners to open...
> ldap_url_parse_ext(ldap://localhost:9009/)
> daemon: getaddrinfo failed: Name or service not known
> slapd stopped.
> connections_destroy: nothing to destroy.
> *******************************************************************
> thanks a lot for your reading my question and help me !
> yours amy
> 2002.12.26
The message looks pretty self-explanatory: your system does not
recognize localhost (don't ask how this is possible, it sounds
like your sistem is terribly misconfigured).
I also note that you're using an outdated version; 2.1.9 is the
current 2.1 release, but of course upgrading will not fix your
problem. try this simple command:
host localhost
you should get 127.0.0.1; if you don't, then try to solve this
before trying to pass OpenLDAP's test.
P.M.
--
Pierangelo Masarati
mailto:pierangelo.masarati@sys-net.it