Re: [greenstone-users] Greenstone3 and GDBM on Solaris 10: missing database.txt files?

From John R. McPherson
DateSat, 18 Aug 2007 10:40:29 +1200
Subject Re: [greenstone-users] Greenstone3 and GDBM on Solaris 10: missing database.txt files?
In-Reply-To (6-2-0-14-2-20070817122220-0679dc90-mail-inhs-uiuc-edu)
On Fri, Aug 17, 2007 at 12:39:17PM -0500, Dwight Divine wrote:

> Before first running the package, I tried to follow the Solaris install
> directions and rebuild the GDBM databases from the database.txt files, but
> I found no database.txt files in either the
> greenstone3/web/sites/localsite/collect/gs2mgdemo/index/text
> or the
> greenstone3/web/sites/localsite/collect/gs2mgppdemo/index/text
> directory.
>
> Here's a list of the files in each:
>
> # ls /www/greenstone3/web/sites/localsite/collect/gs2mgdemo/index/text/
> gs2mgdemo.ldb gs2mgdemo.t gs2mgdemo.td gs2mgdemo.ti gs2mgdemo.tsd
>
> # ls /www/greenstone3/web/sites/localsite/collect/gs2mgppdemo/index/text/
> gs2mgppdemo.ldb gs2mgppdemo.td gs2mgppdemo.tl
> gs2mgppdemo.t gs2mgppdemo.ti gs2mgppdemo.tsd

*.ldb is the GDBM database filename on little-endian machines. This is
the bit of a greenstone collection that isn't portable.

> ERROR: [2007-08-17 10:30:59] GDBMWrapper.openDatabase()
> couldn't open database
> /www/greenstone3/web/sites/localsite/collect/gs2mgppdemo
> /index/text/gs2mgppdemo.bdb
> ERROR: [2007-08-17 10:30:59] AbstractGS2DocumentRetrieve.configure()
> Could not open GDBM database!

*.bdb is the GDBM database filename on big-endian machines. If you want
to copy a collection from one architecture to another, you have to
either rebuild it, or use the db2txt / txt2db programs that come with
greenstone to convert from native GDBM format on a machine into a
textfile that you can copy between machines and convert back again.

John McPherson