1 | |
---|
2 | Note: more up-to-date notes may be available on our website, at |
---|
3 | http://wiki.greenstone.org/wiki/index.php/Installing_Greenstone |
---|
4 | |
---|
5 | The following instructions assume the top level Greenstone folder is called |
---|
6 | Greenstone (which is the standard name used for Greenstone 2 releases). |
---|
7 | If you have got Greenstone from SVN, the top level directory will be greenstone2. |
---|
8 | |
---|
9 | The Greenstone Librarian Interface (GLI) code will be in the gli folder inside |
---|
10 | the Greenstone folder. If you are using SVN and you want to use the GLI to |
---|
11 | build collections, you'll need to check it out by running |
---|
12 | svn checkout http://svn.greenstone.org/main/trunk/gli |
---|
13 | in the Greenstone folder. |
---|
14 | |
---|
15 | -- Compiling and installing on Unix -- |
---|
16 | |
---|
17 | cd to the top level Greenstone directory (i.e. the directory |
---|
18 | where this file lives) and perform the following three steps. |
---|
19 | |
---|
20 | 1. ./configure --enable-apache-httpd |
---|
21 | 2. make |
---|
22 | 3. make install |
---|
23 | |
---|
24 | This will install the library.cgi and oaiserver.cgi executables to |
---|
25 | Greenstone/cgi-bin/linux. |
---|
26 | If you want to run Greenstone from a system |
---|
27 | cgi-bin directory you'll need to move the library executable and |
---|
28 | gsdlsite.cfg from Greenstone/cgi-bin/linux to your system cgi-bin. |
---|
29 | |
---|
30 | Note that the Greenstone directory structure is important to the operation |
---|
31 | of the software. Therefore the --prefix, --bindir etc. options to configure |
---|
32 | make no sense and will have no effect. If you want Greenstone to be |
---|
33 | installed somewhere specific (say /usr/local) you'll need to move the |
---|
34 | entire Greenstone directory there. |
---|
35 | |
---|
36 | Greenstone will install Apache into apache-httpd/linux. You can disable this |
---|
37 | by running ./configure without the -enable-apache-httpd option. In that case |
---|
38 | you'll need to set up your own apache to serve Greenstone. See See |
---|
39 | http://wiki.greenstone.org/wiki/index.php/Setting_up_an_Apache_Web_Server_for_Greenstone_2_Walkthrough |
---|
40 | for more details. |
---|
41 | |
---|
42 | To compile the GLI, cd to the gli directory and run makegli.sh |
---|
43 | |
---|
44 | -- Compiling on Windows -- |
---|
45 | |
---|
46 | Greenstone has been successfully compiled using Microsoft Visual C++ |
---|
47 | versions 4.2, 6.0 and 2005. If anyone succeeds in compiling Greenstone with |
---|
48 | another compiler (or another version of VC++) we'd appreciate hearing about |
---|
49 | it at greenstone-devel@list.scms.waikato.ac.nz |
---|
50 | |
---|
51 | If you have got Greenstone from svn, you'll also need to download some Windows binaries. |
---|
52 | 1. cd to top-level greenstone2 folder. |
---|
53 | 2. cd bin |
---|
54 | 3. svn co http://svn.greenstone.org/main/trunk/binaries/windows/bin windows |
---|
55 | |
---|
56 | |
---|
57 | There is a batch script you can run to set up and compile Greenstone. |
---|
58 | |
---|
59 | If you want Greenstone to try and guess your Visual Studio setup, edit the |
---|
60 | makegs2.bat file and set SET_GS_ENV to true. Otherwise you'll need to set up |
---|
61 | your Visual Studio environment before running the make script. |
---|
62 | For example, run |
---|
63 | C:\Program Files\Microsoft Visual Studio\vc\vcvarsall.bat |
---|
64 | |
---|
65 | To compile greenstone: |
---|
66 | For 64 bit machines, run |
---|
67 | * makegs2x64.bat |
---|
68 | For 32 bit machines, run |
---|
69 | * makegs2.bat |
---|
70 | |
---|
71 | |
---|
72 | |
---|
73 | For more information about compiling Greenstone, or for manual compling |
---|
74 | instructions, see |
---|
75 | http://wiki.greenstone.org/wiki/index.php/Compiling_Greenstone |
---|
76 | |
---|
77 | These scripts will unpack necessary zip files, set up paths etc, then compile |
---|
78 | Greenstone. They will install library.cgi and oaiserver.cgi to the |
---|
79 | Greenstone\cgi-bin\windows |
---|
80 | directory and server.exe to the top level Greenstone directory. |
---|
81 | |
---|
82 | To run the web library you'll need to set up a web server to serve Greenstone. |
---|
83 | Then you'll need to edit Greenstone\cgi-bin\gsdlsite.cfg. See |
---|
84 | http://wiki.greenstone.org/wiki/index.php/Setting_up_an_Apache_Web_Server_for_Greenstone_2_Walkthrough |
---|
85 | for more details about using Apache, or |
---|
86 | http://wiki.greenstone.org/wiki/index.php/Installing_Greenstone#How_do_I_use_Greenstone.27s_web_library_with_IIS.3F |
---|
87 | for more details about using IIS. |
---|
88 | |
---|
89 | To compile the GLI, cd to the gli directory and run makegli.bat. |
---|
90 | |
---|