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

Re: Libdb-4.2.so



Please, do not email me privately on list-related topics.

> Hi Pierangelo,
>     When I do an ldd on slapd I see the message saying libdb-4.2.so is
> not found. But, I have set it in LD_LIBRARY_PATH. When I do an echo to
> confirm, I seet it being set. Is there any other variable that I need to
> set?  Even for me make test failed. Is it anything related to the way I
> built? (I doubt that).

what did you set in LD_LIBRARY_PATH? did you export that variable?
what does testrun/slapd.1.log say about the reason of test failure?

p.

>
> Help appreciated,
> Praveen
>
> *	To: openldap-software@OpenLDAP.org
> <mailto:openldap-software%40OpenLDAP.org>
> *	Subject: RE: 2.2.11 won't run?
> *	From: "Armbrust, Daniel C." <Armbrust.Daniel@mayo.edu
> <mailto:Armbrust.Daniel%40mayo.edu> >
> *	Date: Mon, 26 Apr 2004 10:44:30 -0500
>
> 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
> /usr/local/BerkeleyDB.4.2/lib/libdb-4.2.so
> /installers/db-4.2.52/build_unix/.libs/libdb-4.2.so
> armbrust@mir04==> /usr/local/openldap-2.2.11/libexec>echo $LDFLAGS
> -L/usr/local/BerkeleyDB.4.2/lib
> armbrust@mir04==> /usr/local/openldap-2.2.11/libexec>
>
>
> And the LDFLAGS were set at the time of configuring/building.
>
> What have I broken?
>
> Dan
>
>
> -----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.
>
> p.
>
> --
> Pierangelo Masarati
> mailto:pierangelo.masarati@sys-net.it
>
>


-- 
Pierangelo Masarati
mailto:pierangelo.masarati@sys-net.it


    SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497