Re: [greenstone-users] Building Collection in Windows for Unix server

From John R. McPherson
DateFri, 23 Apr 2004 13:16:42 +1200
Subject Re: [greenstone-users] Building Collection in Windows for Unix server
In-Reply-To (4088617E-F97A7C3C-cs-waikato-ac-nz)
Michael Dewsnip wrote:
> Hi,
>
> Yes you can. You just need to make sure both systems have the same
> endianness. If not, you have to convert the information database
> collect/<collectionname>/index/text/<collectionname>.ldb to a text file
> using db2txt, then copy it to your server and convert back to a .bdb
> database file using txt2db.

To clarify for everyone, you don't necessarily have to rebuild
collections on different machines - in many cases you can move a built
collection, as long as both have a CPU of the same "endianness".

Intel and AMD chips are called "little endian", and most others
(including powerpc) are called "big endian".

So a collection built on a linux machine using an Intel chip can be
copied ok to a windows machine using an AMD chip (and vice versa). And a
collection built on a mac using a PowerPC chip can be copied to a
PowerPC machine running linux (and vice versa). If you want to copy a
collection between architectures of a different endian, follow Michael's
instructions above. (You'll need to source setup.bash on the command
line to have access to the txt2db and db2txt programs.)

John McPherson