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

Re: Fw: Help - Cannot install OpenLDAP - 'make test' failed.



tor, 2002-07-18 kl. 06:51 skrev Yijun Wang:

> I just use the default configuration. And it shouldn't use tcp wrappers.
> There is only one line in file tests/test-db/master.log:
> 
> ../servers/slapd/slapd: error while loading shared libraries: libdb-4.0.so:
> cannot open shared object file: No such file or directory

Yesterday Harry Rüter told you:

> > >> > Try something like this (before you conigure/make :
> > >> >
> > >> > export CPPFLAGS="-I/usr/local/berkeleydb4/include"
> > >> > export LDFLAGS="-L/usr/local/berkeleydb4/lib"

> > >> > Your path to  BerkeleyDB 4.0.14 will be another,
> > >> > so this is just an example ...

You obviously did this, since you could compile openldat with BDB.

However, now slapd cannot find the Berkeley libraries any more.

I think that your problem is the "export" exec - leave that out and
recompile openldap. Use just:

CPPFLAGS="-I/usr/local/berkeleydb4/include" \
LDFLAGS="-L/usr/local/berkeleydb4/lib" ./configure

Why do I say that? Because the "export" puts the two variables into the
current shell and they subsequently get forgotten. And anyway, that's
what works for me :-)

Actually, because I installed Cyrus SASL, because I have GNU GDBM and
because the blurb says that for the tests to work, GDBM is also
necessary, my line is:

CPPFLAGS="-I/usr/local/include/sasl -I/usr/include/gdbm \
-I/usr/local/BerkeleyDB.4.0/include" \
LDFLAGS="-L/usr/local/BerkeleyDB.4.0/lib -L/usr/local/lib/sasl2" \
./configure (with a lot of --enable and --with afterwards, but that's
not very important.

Best,

Tony

-- 

Tony Earnshaw

e-post:		tonni@billy.demon.nl
www:		http://www.billy.demon.nl
gpg public key:	http://www.billy.demon.nl/tonni.armor

Telefoon:	(+31) (0)172 530428
Mobiel:		(+31) (0)6 51153356

GPG Fingerprint = 3924 6BF8 A755 DE1A 4AD6 FA2B F7D7 6051 3BE7 B981
3BE7B981


Attachment: signature.asc
Description: Dette er en digitalt signert meldingsdel