Re: [greenstone-users] Re: something not quite right

From John R. McPherson
DateFri, 31 Dec 2004 20:03:06 +1300
Subject Re: [greenstone-users] Re: something not quite right
In-Reply-To (a06200702bdf77d1790f7-172-16-1-51)
On Tue, Dec 28, 2004 at 01:16:18PM -0800, Rich Robinson wrote:
> Hi,
> I'm building my collection on a Windows machine, then copy the
> collect directory over to a UNIX box where it's served. On the About
> page for this collection, on my UNIX box I see this near a search
> form near the top:
> Search for _idx_ that contain some/all of the words
> whereas that search form is missing on the same About page on the
> Windows machine.
> I've also ported over some of the macros and the config file, but not
> sure why the search form is appearing after copying the collection to
> the UNIX box ?

This strongly suggests that the collection metadata file (stored in
GNU DB format) is not readable by the gdbm libraries on the 2nd machine.
In other words, the two computers use incompatible gdbm file formats.

The more common reason for this is if the machines are of different
"endians" - for example windows on intel vs osx on powerpc. I've also
seen it with different operating systems on the same architecture - eg
windows on intel and freebsd on intel.

You can either copy the archives/ directory of the collection over and
re-build on the unix machine, or use the "db2txt" program that comes with
greenstone to export the collection metadata into a text file, copy that
over, and use "txt2db" on the unix machine to manually re-create the
gdbm file.

I think these is discussed in the online greenstone FAQ. If not, they'll
need to be updated in the new year :)