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 ld.so.conf (found in /etc) contains the path '/usr/local/lib' in it
and, more importantly, have ran ldconfig to update the dynamic library
cache (ld.so.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 libgdbm.so* into /usr/lib, where it will be found by default
> 2) make greenstone link staticly against libgdbm.a instead of libgdbm.so,
> 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:
> export LD_LIBRARY_PATH
> exec ./library.bin
> John McPherson
> greenstone-users mailing list