Compiling Greenstone
From GreenstoneWiki
Simple instructions for compiling Greenstone from source distribution or SVN checkout.
For more detailed instructions and platform specific notes, please see this page.
Unix
The "standard" commands of
$ ./configure $ make $ make install
should (hopefully) be all that is required.
If you get complaints about not finding gdbm, use the --with-gdbm=/full/path/to/your/gdbm/directory option to configure
You will probably need to use GNU make.
The Greenstone Librarian Interface (GLI) code is written in Java, and compiling it requires a suitable version of the Java Software Development Kit (version 1.4.0 or newer). To compile this source code, run makegli.sh from the gsdl/gli directory.
A detailed walkthrough for installing from source on Linux is available here.
Mac OS X
All compilation is currently done through a terminal.
Same basic instructions as for Unix. GDBM is not installed by default, so you will need to install it, then use the --with-gdbm=/full/path/to/your/gdbm/directory option to configure
Windows
We have tested with Visual C++ versions 4.2 and 6.0. Our distribution includes a cut-down port of the gdbm library for windows.
Manually unzip files in the gsdl\packages\windows\crypt, gsdl\packages\windows\expat and gsdl\packages\windows\gdbm directories.
We compile Greenstone from the Windows command prompt. First, you must set up the VC++ environment. (For us, this requires running the vcvars32.bat script, found in the VC++ installation directory (for us this is in C:\Program Files\Microsoft Visual Studio\VC98\bin.)
Then run the following:
nmake /f win32.mak nmake /f win32.mak LOCAL_LIBRARY=1
You will need to edit gsdl\setup.bat and replace the two instances of **GSDLHOME** with the path to the gsdl directory.
The Greenstone Librarian Interface (GLI) code is written in Java, and compiling it requires a suitable version of the Java Software Development Kit (version 1.4.0 or newer). To compile this source code, run makegli.bat from the gsdl\gli directory.
