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

Re: Tests-bdb succeed but ldbm fail ?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


> søn, 21.12.2003 kl. 17.52 skrev Ace Suares:
> > ./configure --prefix=/usr/local/openldap-2.1.25 --enable-crypt
> > - --enable-wrappers
> >
> > It couldn't find the BDB stuff, but after these commands:
> >
> > ln -s /usr/local/BerkeleyDB.4.2/include/db.h /usr/include/db.h
> > ln -s /usr/local/BerkeleyDB.4.2/lib/libdb-4.2.so /usr/lib/libdb-4.2.so
> >
> > it worked fine.
>
> You say (later) that you use Debian. I use RedHat RHEL 3.
>
> The symlinks you're making are unnecessary. By simply stating:
>
> CPPFLAGS=" -I/usr/local/BerkeleyDB.4.2/include" \
> LDFLAGS=" -L/usr/local/BerkeleyDB.4.2/lib" \
> 	./configure
>
> you'd avoid the necessity for the symlinks. Especially the db.h symlink
> could possibly make things difficult for you on non-compatible compiles
> later, should you forget it.


Thanks again for the tip. But the above command didn't work for me (now on a 
Suse 8.2 box). From the appearance it looks lacking ';' between each line.

This worked for me:
CPPFLAGS=" -I/usr/local/BerkeleyDB.4.2/include"; export CPPFLAGS; LDFLAGS=" 
- -L/usr/local/BerkeleyDB.4.2/lib"; export LDFLAGS; ./configure

(all on one line of course)

without the 'exports' it didn't work.

THITIDI ! (That's How I Think I Did It)

_Ace

website: http://www.suares.nl * http://www.qwikzite.nl
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQE/568Uy7boE8xtIjURAsmjAJ46ii29zryuE6D/V45rSA9CyF0howCgmvcy
rbu2sIJtT4rHssDsjGN9Jj0=
=886V
-----END PGP SIGNATURE-----