Re: [greenstone-users] Greenstone Version 2.61 Information

From Jonathan Wells
DateTue, 16 Aug 2005 15:52:05 +1000
Subject Re: [greenstone-users] Greenstone Version 2.61 Information
In-Reply-To (20050816051116-GD14352-matai-cs-waikato-ac-nz)
Hi John,

Maybe I am missing something here(! ;-) but when you installed either
from the installer or via the configure process, do you make sure that
the (found in /etc) contains the path '/usr/local/lib' in it
and, more importantly, have ran ldconfig to update the dynamic library
cache ( also found in /etc)?


On Tue, 2005-08-16 at 17:11 +1200, John R. McPherson wrote:
> On Tue, Aug 16, 2005 at 12:43:19PM +0800, Dave wrote:
> > I installed in Sun Solar 2.8 and it shows 500 Internal Server Error.
> > When I exam apache's error log, it shows "Premature end of script headers".
> > Could you tell how can I fix it?
> > Thanks.
> From experience, this might mean that greenstone was dynamically
> linked against the GDBM library which is in /usr/local, but when the
> greenstone cgi is run from apache, only system directories (/lib and
> /usr/lib) are searched, and not /usr/local/lib, and so the dynamic
> linker can't find libgdbm.
> You can either:
> 1) install* into /usr/lib, where it will be found by default
> 2) make greenstone link staticly against libgdbm.a instead of,
> although I'm not sure if there's a nice way to do that with configure/
> compiler options.
> 3) fiddle with the run-time dynamic library path. eg rename the library
> executable in the cgi-bin directory to library.bin, and create a
> library shell script:
> #!/bin/sh
> LD_LIBRARY_PATH=:/usr/local/lib
> exec ./library.bin
> John McPherson
> _______________________________________________
> greenstone-users mailing list