1 |
|
---|
2 | -- Compiling and installing on Unix --
|
---|
3 |
|
---|
4 | cd to the top level gsdl directory (i.e. the directory where this file
|
---|
5 | lives) and perform the following three steps.
|
---|
6 |
|
---|
7 | 1. ./configure
|
---|
8 | 2. make
|
---|
9 | 3. make install
|
---|
10 |
|
---|
11 | This will install the library executable to gsdl/cgi-bin. If you want to
|
---|
12 | run Greenstone from a system cgi-bin directory you'll need to move the
|
---|
13 | library executable and gsdlsite.cfg from gsdl/cgi-bin to your system
|
---|
14 | cgi-bin.
|
---|
15 |
|
---|
16 | Note that the Greenstone directory structure is important to the operation
|
---|
17 | of the software. Therefore the --prefix, --bindir etc. options to configure
|
---|
18 | make no sense and will have no effect. If you want Greenstone to be
|
---|
19 | installed somewhere specific (say /usr/local) you'll need to move the
|
---|
20 | entire gsdl directory there.
|
---|
21 |
|
---|
22 |
|
---|
23 | -- Compiling on Windows --
|
---|
24 |
|
---|
25 | Greenstone has been successfully compiled using Microsoft Visual C++
|
---|
26 | versions 4.2 and 6.0. If anyone succeeds in compiling Greenstone with
|
---|
27 | another compiler (or another version of VC++) we'd appreciate hearing about
|
---|
28 | it at [email protected].
|
---|
29 |
|
---|
30 | The major difference between compiling with VC++ 4.2 compared with VC++ 6.0
|
---|
31 | is that 4.2 must use the STLport standard template library (packaged with
|
---|
32 | Greenstone) while VC++ 6.0 may use its own built in STL implementation.
|
---|
33 |
|
---|
34 | Perform the following steps to compile and install Greenstone. Note that
|
---|
35 | some parts of the process described are specific to one or other of the two
|
---|
36 | compilation options mentioned above (STLport or non-STLport). These steps
|
---|
37 | are marked as such.
|
---|
38 |
|
---|
39 | 1. Unzip the following zip archives (into the directories in which the
|
---|
40 | zip files themselves are contained).
|
---|
41 |
|
---|
42 | * gsdl\packages\windows\gdbm\gdbm.zip
|
---|
43 | * gsdl\packages\windows\crypt\crypt.zip
|
---|
44 | * gsdl\packages\windows\stlport\stlport.zip (STLport version only)
|
---|
45 |
|
---|
46 | 2. To use VC++ command line tools you may need to execute the
|
---|
47 | MSDEV\BIN\VCVARS32.BAT batch file to set up your environment.
|
---|
48 |
|
---|
49 | 3. cd to the top level gsdl directory (i.e. the directory where this file
|
---|
50 | lives).
|
---|
51 |
|
---|
52 | 4. compile the web library (library.exe) with
|
---|
53 | "nmake /f win32.mak USE_STLPORT=1" (STLport version)
|
---|
54 | or
|
---|
55 | "nmake /f win32.mak" (non-STLport version).
|
---|
56 |
|
---|
57 | 5. compile the local library (server.exe) with
|
---|
58 | "nmake /f win32.mak USE_STLPORT=1 LOCAL_LIBRARY=1" (STLport version)
|
---|
59 | or
|
---|
60 | "nmake /f win32.mak LOCAL_LIBRARY=1" (non-STLport version)
|
---|
61 |
|
---|
62 | This will install library.exe to the gsdl\cgi-bin directory and server.exe
|
---|
63 | to the top level gsdl directory.
|
---|