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

RE: 2.2.11 won't run?

Maybe I'm confused, but isn't that what the LDFLAGS are for?

armbrust@mir04==> /usr/local/openldap-2.2.11/libexec>ldd slapd
        libdb-4.2.so => not found
        libresolv.so.2 => /lib/libresolv.so.2 (0x40027000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0x40039000)
        libc.so.6 => /lib/tls/libc.so.6 (0x42000000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
armbrust@mir04==> /usr/local/openldap-2.2.11/libexec>locate libdb-4.2.so
armbrust@mir04==> /usr/local/openldap-2.2.11/libexec>echo $LDFLAGS
armbrust@mir04==> /usr/local/openldap-2.2.11/libexec>

And the LDFLAGS were set at the time of configuring/building.

What have I broken?


-----Original Message-----
From: Pierangelo Masarati [mailto:ando@sys-net.it] 
Sent: Monday, April 26, 2004 10:28 AM
To: Armbrust, Daniel C.
Cc: openldap-software@OpenLDAP.org
Subject: Re: 2.2.11 won't run?

> I just downloaded 2.2.11, and went through my normal build process:
> export LDFLAGS="-L/usr/local/BerkeleyDB.4.2/lib"
> export CPPFLAGS="-I/usr/local/BerkeleyDB.4.2/include"
> ./configure --prefix=/usr/local/openldap-2.2.11/ --without-cyrus-sasl
> make depend
> make
> make test (fails)
> make install
> slapd with a run level of 1 yields:
> /usr/local/openldap-2.2.11/libexec/slapd: error while loading shared
> libraries: libdb-4.2.so: cannot open shared object file: No such file or
> directory

ibdb-4.2.so is not in LD_LIBRARY_PATH or somethig of the kind. a ldd on
slapd will tell you what shared libraries cannot be loaded with current
path settings.


Pierangelo Masarati