[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).
|
---|
[26971] | 6 | If you have got Greenstone from SVN, the top level directory will be greenstone2.
|
---|
[17957] | 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
|
---|
[26971] | 11 | svn checkout http://svn.greenstone.org/main/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 |
|
---|
[26971] | 19 | 1. ./configure --enable-apache-httpd
|
---|
[2403] | 20 | 2. make
|
---|
| 21 | 3. make install
|
---|
| 22 |
|
---|
[19177] | 23 | This will install the library.cgi and oaiserver.cgi executables to
|
---|
[26971] | 24 | Greenstone/cgi-bin/linux.
|
---|
[17957] | 25 | If you want to run Greenstone from a system
|
---|
| 26 | cgi-bin directory you'll need to move the library executable and
|
---|
[26971] | 27 | gsdlsite.cfg from Greenstone/cgi-bin/linux 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 |
|
---|
[26971] | 35 | Greenstone will install Apache into apache-httpd/linux. You can disable this
|
---|
| 36 | by running ./configure without the -enable-apache-httpd option. In that case
|
---|
| 37 | you'll need to set up your own apache to serve Greenstone. See See
|
---|
[17957] | 38 | http://wiki.greenstone.org/wiki/index.php/Setting_up_an_Apache_Web_Server_for_Greenstone_2_Walkthrough
|
---|
| 39 | for more details.
|
---|
| 40 |
|
---|
| 41 | To compile the GLI, cd to the gli directory and run makegli.sh
|
---|
| 42 |
|
---|
[2403] | 43 | -- Compiling on Windows --
|
---|
| 44 |
|
---|
| 45 | Greenstone has been successfully compiled using Microsoft Visual C++
|
---|
[11392] | 46 | versions 4.2, 6.0 and 2005. If anyone succeeds in compiling Greenstone with
|
---|
| 47 | another compiler (or another version of VC++) we'd appreciate hearing about
|
---|
[17957] | 48 | it at [email protected]
|
---|
[2403] | 49 |
|
---|
[26971] | 50 | If you have got Greenstone from svn, you'll also need to download some Windows binaries.
|
---|
| 51 | 1. cd to top-level greenstone2 folder.
|
---|
| 52 | 2. cd bin
|
---|
| 53 | 3. svn co http://svn.greenstone.org/main/trunk/binaries/windows/bin windows
|
---|
[2403] | 54 |
|
---|
[26974] | 55 |
|
---|
[26971] | 56 | There is a batch script you can run to set up and compile Greenstone.
|
---|
[26974] | 57 |
|
---|
| 58 | If you want Greenstone to try and guess your Visual Studio setup, edit the
|
---|
| 59 | makegs2.bat file and set SET_GS_ENV to true. Otherwise you'll need to set up
|
---|
| 60 | your Visual Studio environment before running the make script.
|
---|
| 61 | For example, run
|
---|
| 62 | C:\Program Files\Microsoft Visual Studio\vc\vcvarsall.bat
|
---|
| 63 |
|
---|
| 64 | To compile greenstone:
|
---|
[26971] | 65 | For 64 bit machines, run
|
---|
[26974] | 66 | * makegs2x64.bat
|
---|
[26971] | 67 | For 32 bit machines, run
|
---|
| 68 | * makegs2.bat
|
---|
[2403] | 69 |
|
---|
[26974] | 70 |
|
---|
| 71 |
|
---|
| 72 | For more information about compiling Greenstone, or for manual compling
|
---|
| 73 | instructions, see
|
---|
[26971] | 74 | http://wiki.greenstone.org/wiki/index.php/Compiling_Greenstone
|
---|
[2403] | 75 |
|
---|
[26974] | 76 | These scripts will unpack necessary zip files, set up paths etc, then compile
|
---|
| 77 | Greenstone. They will install library.cgi and oaiserver.cgi to the
|
---|
| 78 | Greenstone\cgi-bin\windows
|
---|
[19177] | 79 | directory and server.exe to the top level Greenstone directory.
|
---|
[17957] | 80 |
|
---|
[26974] | 81 | To run the web library you'll need to set up a web server to serve Greenstone.
|
---|
| 82 | Then you'll need to edit Greenstone\cgi-bin\gsdlsite.cfg. See
|
---|
[17957] | 83 | http://wiki.greenstone.org/wiki/index.php/Setting_up_an_Apache_Web_Server_for_Greenstone_2_Walkthrough
|
---|
| 84 | for more details about using Apache, or
|
---|
| 85 | http://wiki.greenstone.org/wiki/index.php/Installing_Greenstone#How_do_I_use_Greenstone.27s_web_library_with_IIS.3F
|
---|
| 86 | for more details about using IIS.
|
---|
| 87 |
|
---|
| 88 | To compile the GLI, cd to the gli directory and run makegli.bat.
|
---|
| 89 |
|
---|