Just to add to what Stephen wrote,
When you upload the collection to your mac, the only part of the
collection that is affected by the endian problem is the gdbm database.
The mg indexes in the collection and the associated files will be fine.
A quick way of dealing with the gdbm database is to use two utilities
provided with greenstone, db2txt and txt2db
db2txt - converts the gdbm database for a collection from binary form to
txt2db - converts the gdbm database for a collection from text form back
to binary form
You can find the gdbm database for a collection in that collections
It will be named as a *.ldb file, or a *.bdb file, the l stands for
little endian, the b stands for big endian. So on a windows machine, if
you had a built collection with the name "apples", you would find a
apples.ldb file here: gsdlcollectapplesindex extapples.ldb
So, to successfully transfer your gdbm database from a windows machine
to a mac, you would need to use the db2txt utility on the windows
machine, to convert the *.ldb file to a text form, something like this
db2txt apples.ldb > apples.ldb.txt
Once you have uploaded that ldb file to the mac, you can use the mac's
version of txt2db to convert your text version back to a *.bdb file in
this case, something like
txt2db apples.ldb.txt > apples.bdb
Put this file in the index/text directory, and your collection should
work properly on the mac.
Hope this helps,
Greenstone Digital Library and Digitisation Specialists
>I am pretty sure you just have to rebuild on the machine the collection is being transfered to.
>This is because of differences in the processors on each machine. Specifically big-endian vs. Little-endian; check wikipedia for the details, but the upshot is you have to rebuild when moving architectures. (ppc->IA32 in this case)
>let of know how you go.
>-- original message --
>Subject:[greenstone-devel] configuration problem
>From:Rich Robinson <email@example.com>
>Date:07/01/2006 9:28 am
>In the past I prepared my Greenstone collection on a local Windows
>computer, then FTP'd to a Unix box. No problem.
>I've moved over to working on Mac OSX 10.3.9, Greenstone 2.6.2. As
>usual, I zipped the collection and unzipped it on the Unix box, but
>it's not showing properly. Just to be sure, I upgraded the Windows
>version of Greenstone to 2.6.2. Still no go. What happens is:
>I get a generic "Greenstone Digital Library Software" page, which
>includes a link into my collection. I click on that link, and the
>only button that shows in the bar is "search". All my browse buttons
>are not showing. I did make sure the main "images" directory on the
>Unix box had all the images I've been using, and have made sure the
>macros directory likewise has all macros such as yourhome.dm.
>It also has a sentence, "This collection contains 94 documents. It
>was last built 0 days ago."
>The description I wrote that should show up on this page is not there.
>Searching does not locate any matches.
>I have checked the gsdlsite.cfg and main.cfg files. Can you help me
>narrow down where the problem lies?
>The collection is at http://www.lcje.net/history
>greenstone-devel mailing list
>greenstone-devel mailing list