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

Re: Fatal error: Cannot map library libdb-4.2.so

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?

At 00:15 06/07/2004, you wrote:

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/"

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?

Jorge Ruão

John Borwick wrote:
Quanah Gibson-Mount wrote:
--On Monday, June 28, 2004 4:02 PM +0100 Jorge Ruão <jruao@fe.up.pt> wrote:
root@tweety:/usr/local/libexec>ldd slapd
55883:slapd: ldd: Fatal Error: Cannot generate dynamic dependencies for
library libdb-4.2.so

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/"


Tim Seeley
Software Applications Developer
School of Informatics and Engineering, Flinders University
Phone: +61 8 8201 2139    (internal extension: 12139)