Re: [greenstone-devel] Problem with 2.51 built from source on FreeBSD

From John R. McPherson
DateThu, 02 Sep 2004 09:48:43 +1200
Subject Re: [greenstone-devel] Problem with 2.51 built from source on FreeBSD
In-Reply-To (41349EB0-3090000-bellsouth-net)
On Wed, 2004-09-01 at 03:52, Beth Nicol wrote:
> I built 2.51 on FreeBSD (at; the messages indicate that the
> build and install were successful. However when I attempt to search a
> collection (the demo collection, or a collection built on Linux - RedHat
> Fedora 9) , only the Search option is available (none of my other
> indexes) and when I search I get the following result pages:
> Content-type: text/html
> Oops!
> An error occurred during the construction of the cgi page. The error
> log, /usr/www/users/nicollb/gsdl/etc/error.txt, contains the following
> information:
> database open failed on: /usr/www/users/nicollb/gsdl/collect/demo/index/text/demo.ldb
> system problem: open on gdbm database "/usr/www/users/nicollb/gsdl/collect/demo/index/text/demo.ldb" failed

> Ideas? Suggestions? Help.

What kind of machine is the freebsd running on? Unfortunately the GDBM
database files are endian-specific - Intel/AMD chip-based machines are
little endian, while sparc/powerpc/motorola chip-based machines are big
endian. Greenstone's compressed text and indices are endian-agnostic,
but the GDBM files are not, and they contain the metadata for each
document as well as the classify/browse structure information.

That could explain why your freebsd machine can't read a .ldb file
created on a redhat machine, but without knowing the hardware involved
it is difficult to say.

John McPherson