Re: [greenstone-users] more on Help on fatal: libgdbm.so.3

From John R. McPherson
DateFri, 12 Mar 2004 09:55:43 +1300
Subject Re: [greenstone-users] more on Help on fatal: libgdbm.so.3
In-Reply-To (BAY10-F10dyMuRIN0EQ00017e0c-hotmail-com)
On Thu, Mar 11, 2004 at 08:22:59PM +0000, rain Hanks wrote:
> Hello,
>
> Sorry, I didn't say it clearly, it also causes the
> http://digital.dev.lib.ucdavis.edu/gsdl/cgi-bin/library to error.

> I finally arrive the last step to install the greenstone, however, it is
> "installed" but it bombed out on setting a password. It looks like I don't
> have libgdbm set in the LD_LIBRARY_PATH.
>
> The error messages are:
> ld.so.1: /usr/local/gsdl/bin/sunos/getpw: fatal:
> libstdc++.so.2.10.0: open failed: No such file or directory
> ld.so.1: /usr/local/gsdl/bin/sunos/txt2db: fatal: libgdbm.so.3:
> open failed: No such file or directory
> Killed


This means you have dynamically linked a program against a dynamic
library, but when you run your program, it can't find that dynamic library
to load.

Either copy the dynamic libraries (libgdbm.so.3 and libstdc++.so....)
into a system directory where they will be found (such as /usr/lib or
/usr/local/lib perhaps), or you need to make sure the LD_LIBRARY_PATH
variable points to directories with those libraries when the executable
is run. For example, rename the "library" program to "library.bin"
and create a shell script called "library" that looks something like

#!/bin/sh
LD_LIBRARY_PATH=/path/to/gdbmlib:/path/to/libstdc++:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
exec ./library.bin


John