[2635] | 1 | Note: more up-to-date notes may be available on our website, at
|
---|
[17957] | 2 | http://wiki.greenstone.org/wiki/index.php/Installing_Greenstone
|
---|
[2403] | 3 |
|
---|
[17957] | 4 | The following instructions assume the top level Greenstone folder is called
|
---|
[19177] | 5 | Greenstone (which is the standard name used for Greenstone 2 releases).
|
---|
[17957] | 6 | If you have got Greenstone from SVN, the top level directory will be gsdl.
|
---|
| 7 |
|
---|
| 8 | The Greenstone Librarian Interface (GLI) code will be in the gli folder inside
|
---|
[19177] | 9 | the Greenstone folder. If you are using SVN and you want to use the GLI to
|
---|
[17957] | 10 | build collections, you'll need to check it out by running
|
---|
| 11 | svn checkout http://svn.greenstone.org/gli/trunk gli
|
---|
[19177] | 12 | in the Greenstone folder.
|
---|
[17957] | 13 |
|
---|
[2403] | 14 | -- Compiling and installing on Unix --
|
---|
| 15 |
|
---|
[19177] | 16 | cd to the top level Greenstone directory (i.e. the directory
|
---|
[17957] | 17 | where this file lives) and perform the following three steps.
|
---|
[2403] | 18 |
|
---|
| 19 | 1. ./configure
|
---|
| 20 | 2. make
|
---|
| 21 | 3. make install
|
---|
| 22 |
|
---|
[19177] | 23 | This will install the library.cgi and oaiserver.cgi executables to
|
---|
| 24 | Greenstone/cgi-bin.
|
---|
[17957] | 25 | If you want to run Greenstone from a system
|
---|
| 26 | cgi-bin directory you'll need to move the library executable and
|
---|
[19177] | 27 | gsdlsite.cfg from Greenstone/cgi-bin to your system cgi-bin.
|
---|
[2403] | 28 |
|
---|
| 29 | Note that the Greenstone directory structure is important to the operation
|
---|
| 30 | of the software. Therefore the --prefix, --bindir etc. options to configure
|
---|
| 31 | make no sense and will have no effect. If you want Greenstone to be
|
---|
| 32 | installed somewhere specific (say /usr/local) you'll need to move the
|
---|
[19177] | 33 | entire Greenstone directory there.
|
---|
[2403] | 34 |
|
---|
[19177] | 35 | You'll need to install Apache and set it up to serve Greenstone. Then you'll need to edit Greenstone/cgi-bin/gsdlsite.cfg. See
|
---|
[17957] | 36 | http://wiki.greenstone.org/wiki/index.php/Setting_up_an_Apache_Web_Server_for_Greenstone_2_Walkthrough
|
---|
| 37 | for more details.
|
---|
| 38 |
|
---|
| 39 | To compile the GLI, cd to the gli directory and run makegli.sh
|
---|
| 40 |
|
---|
[2403] | 41 | -- Compiling on Windows --
|
---|
| 42 |
|
---|
| 43 | Greenstone has been successfully compiled using Microsoft Visual C++
|
---|
[11392] | 44 | versions 4.2, 6.0 and 2005. If anyone succeeds in compiling Greenstone with
|
---|
| 45 | another compiler (or another version of VC++) we'd appreciate hearing about
|
---|
[17957] | 46 | it at [email protected]
|
---|
[2403] | 47 |
|
---|
[17957] | 48 | The major difference between compiling with VC++ 4.2 compared with
|
---|
| 49 | VC++ 6.0/2005 is that 4.2 must use the STLport standard template library
|
---|
| 50 | (packaged with Greenstone) while VC++ 6.0/2005 may use its own built in
|
---|
| 51 | STL implementation.
|
---|
[2403] | 52 |
|
---|
| 53 | Perform the following steps to compile and install Greenstone. Note that
|
---|
| 54 | some parts of the process described are specific to one or other of the two
|
---|
[11392] | 55 | compilation options mentioned above. These steps are marked as such.
|
---|
[2403] | 56 |
|
---|
| 57 | 1. Unzip the following zip archives (into the directories in which the
|
---|
| 58 | zip files themselves are contained).
|
---|
| 59 |
|
---|
[19177] | 60 | * Greenstone\common-src\indexers\packages\windows\iconv\iconv.zip
|
---|
| 61 | * Greenstone\common-src\packages\windows\gdbm\gdbm.zip
|
---|
| 62 | * Greenstone\common-src\packages\windows\crypt\crypt.zip
|
---|
| 63 | * Greenstone\common-src\packages\windows\stlport\stlport.zip (VC++ 4.2 only)
|
---|
[2403] | 64 |
|
---|
| 65 | 2. To use VC++ command line tools you may need to execute the
|
---|
| 66 | MSDEV\BIN\VCVARS32.BAT batch file to set up your environment.
|
---|
| 67 |
|
---|
[19177] | 68 | 3. cd to the top level Greenstone directory (i.e. the directory where
|
---|
[17957] | 69 | this file lives).
|
---|
[2403] | 70 |
|
---|
[19177] | 71 | 4. compile the web library (library.cgi) and OAI server (oaiserver.cgi) with
|
---|
[11392] | 72 | "nmake /f win32.mak GSDL_VC4=1" (VC++ 4.2)
|
---|
| 73 | or
|
---|
| 74 | "nmake /f win32.mak" (VC++ 6.0/2005)
|
---|
[2403] | 75 |
|
---|
| 76 | 5. compile the local library (server.exe) with
|
---|
[11392] | 77 | "nmake /f win32.mak GSDL_VC4=1 LOCAL_LIBRARY=1" (VC++ 4.2)
|
---|
[2403] | 78 | or
|
---|
[11392] | 79 | "nmake /f win32.mak LOCAL_LIBRARY=1" (VC++ 6.0/2005)
|
---|
[2403] | 80 |
|
---|
[19177] | 81 | This will install library.cgi and oaiserver.cgi to the Greenstone\cgi-bin
|
---|
| 82 | directory and server.exe to the top level Greenstone directory.
|
---|
[17957] | 83 |
|
---|
[19177] | 84 | To run the web library you'll need to set up a web server to serve Greenstone. Then you'll need to edit Greenstone\cgi-bin\gsdlsite.cfg. See
|
---|
[17957] | 85 | http://wiki.greenstone.org/wiki/index.php/Setting_up_an_Apache_Web_Server_for_Greenstone_2_Walkthrough
|
---|
| 86 | for more details about using Apache, or
|
---|
| 87 | http://wiki.greenstone.org/wiki/index.php/Installing_Greenstone#How_do_I_use_Greenstone.27s_web_library_with_IIS.3F
|
---|
| 88 | for more details about using IIS.
|
---|
| 89 |
|
---|
| 90 | To compile the GLI, cd to the gli directory and run makegli.bat.
|
---|
| 91 |
|
---|