[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Fatal error: Cannot map library libdb-4.2.so
- To: openldap-software@OpenLDAP.org
- Subject: Re: Fatal error: Cannot map library libdb-4.2.so
- From: Tim Seeley <tim.seeley@infoeng.flinders.edu.au>
- Date: Tue, 06 Jul 2004 11:46:13 +0930
- Cc: Jorge Ruão <jruao@fe.up.pt>
- In-reply-to: <40E96977.8010107@fe.up.pt>
- References: <40E162B5.5000302@wfu.edu> <40D998D7.5090005@fe.up.pt> <0F8FB39570F4F55531B79651@cadabra-dsl.stanford.edu> <40DD721E.4070106@fe.up.pt> <C5F63658FB5945D1BBECC539@cadabra-dsl.stanford.edu> <40E0330C.404@fe.up.pt> <75D98E7BAE9E3F53E541E70D@cadabra-dsl.stanford.edu> <40E162B5.5000302@wfu.edu>
Hello Jorge,
I've come into this thread part way through so my comment may be off the
mark, but on Solaris I set LD_LIBRARY_PATH, rather than LD_RUN_PATH, for
exactly this sort of issue. What OS are you on? Do you have
LD_LIBRARY_PATH set?
Tim
At 00:15 06/07/2004, you wrote:
Hi,
I've set the LD_RUN_PATH with export, but it keeps giving me the error.
I've also run lld libdb.4.2.so, everything goes as follows. Can be
anything wrong with libdb-4.2.so?
root:~>cd /etc/
root:/etc>export
LD_RUN_PATH="/usr/local/BerkeleyDB.4.2/lib/"
root:/etc>/usr/local/libexec/slapd
8932:/usr/local/libexec/slapd: /sbin/loader: Fatal Error: Cannot map
library libdb-4.2.so
root:/etc>ldd /usr/local/libexec/slapd
8933:/usr/local/libexec/slapd: ldd: Fatal Error: Cannot generate dynamic
dependencies for library libdb-4.2.so
root:/etc>cd /usr/local/BerkeleyDB.4.2/lib
root:/usr/local/BerkeleyDB.4.2/lib>ldd libdb-4.2.so
Main =>
libdb-4.2.so
libc.so
=> /usr/shlib/libc.so
root@tweety:/usr/shlib>ldd /usr/shlib/libc.so
Main =>
/usr/shlib/libc.so
If I should search in other place, could you please point me the
direction?
Thanks,
Jorge Ruão
John Borwick wrote:
Quanah Gibson-Mount wrote:
[snip]
--On Monday, June 28, 2004 4:02 PM
+0100 Jorge Ruão
<jruao@fe.up.pt> wrote:
root@tweety:/usr/local/libexec>LD_RUN_PATH=/usr/local/BerkeleyDB.4.2/lib/
[snip]
root@tweety:/usr/local/libexec>ldd
slapd
55883:slapd: ldd: Fatal Error: Cannot generate dynamic dependencies for
library libdb-4.2.so
[snip]
This isn't doing what you think it does. You need to make
LD_RUN_PATH available for subshells by exporting it:
tcsh: setenv LD_RUN_PATH "/usr/local/BerkeleyDB.4.2/lib/"
sh: export
LD_RUN_PATH="/usr/local/BerkeleyDB.4.2/lib/"
HTH,
John
Tim Seeley
Software Applications Developer
School of Informatics and Engineering, Flinders University
Phone: +61 8 8201 2139 (internal extension:
12139)