source: trunk/gsdl3/README.txt@ 9892

Last change on this file since 9892 was 9892, checked in by kjdon, 19 years ago

added a note about setting gsdl2.installed.path

  • Property svn:keywords set to Author Date Id Revision
File size: 5.4 KB
Line 
1Greenstone 3 (GSDL3)
2Copyright (C) 2003 New Zealand Digital Libraries, University Of Waikato
3GSDL3 comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.txt
4This is free software, and you are welcome to redistribute it
5
6Installing Greenstone from a binary distribution (Linux):
7---------------------------------------------------------
8
9Download the gsdl3-x.xx-linux executable file, and run it. Follow the instructions given.
10
11Installing Greenstone from a binary distribution (Windows):
12-----------------------------------------------------------
13
14Download the gsdl3-x.xx-win32.exe executable file, and double click on it.
15Follow the instructions given.
16
17
18Installing Greenstone from a CVS checkout (Linux and Windows):
19--------------------------------------------------------------
20
21Checkout the code:
22
23cvs -d :pserver:[email protected]:2402/usr/local/global-cvs/gsdl-src co gsdl3
24
25Build and install:
26
27Greenstone is built and installed using Ant (Apache's Java based build tool,
28http://ant.apache.org). You will need a Java Development
29Environment (1.4 or higher), and Ant installed to use Greenstone. You can download Ant from http://ant.apache.org/bindownload.cgi.
30
31In the gsdl3 directory, you can run 'ant' which will give you a help message.
32Running 'ant -projecthelp' gives a list of the targets that you can run - these
33do various things like compile the source code, startup the server etc.
34
35For a first time install, run 'ant install'.
36
37The file build.properties contains various parameters that can be set by the user. Please check these settings before running 'ant install'.
38Greenstone 3 uses some parts of Greenstone 2 for collection building using the Librarian Interface. It downloads the relevant parts during install. If you have Greenstone 2 already installed, please set the gsdl2.installed.path property to be the root of your Greenstone 2 installation. Greenstone 3 will then use this installation rather than downloading the extra Greenstone 2 bits.
39
40 The install process will ask you if you accept the properties before starting.
41For a non-interactive version of the install, run
42ant -Dproperties.accepted=yes install
43
44To log the output in build.log, run
45ant -Dproperties.accepted=yes -logfile build.log install
46
47Under Linux, Java and C/C++ compilation is carried out. For windows, since Visual Studio is not a standard component, only Java compilation is carried out. Pre-compiled binaries are provided for the C/C++ components (packages and Greenstone 2 style building). If you have Visual Studio installed (version 6), you can run the compile-windows-c++ targets to compile the code locally. (Don't forget to setup the Visual Studio environment first, by running, e.g. C:/Program Files/Microsoft Visual Studio/VC98/Bin/VCVARS32.BAT or equivalent.)
48
49Running Greenstone:
50-------------------
51
52To startup the servers, run 'ant start'. 'ant restart' and 'ant stop' restarts and shuts down the servers. To start or stop just Tomcat or MYSQL, use the start-tomcat, start-mysql, stop-tomcat, stop-mysql targets.
53
54On Windows, if you have installed a binary version, you can also start Greenstone by selecting Greenstone 3 Digital Library from the Start menu.
55
56Greenstone will be available in a browser at "http://localhost:8080/gsdl3".
57
58Using SOAP (Linux and Windows):
59-------------------------------
60
61Greenstone comes with Apache Axis installed as a webapp in Tomcat. A SOAP server on localsite is deployed during installation. You should be able to see all localsite's collections through the gateway servlet.
62
63To set up a SOAP server on a new site, run
64ant soap-deploy-site
65This will prompt you for the sitename (the directory name), and the site uri - this should be a unique identifier for the site's web service.
66
67For a non-interactive version, run
68ant -Daxis.sitename=xxx -Daxis.siteuri=yyy soap-deploy-site
69
70Building Collections:
71-----------------------
72
73You can build collections using either Greenstone 2 style building, or native Greenstone 3 style.
74
75Greenstone 2:
76
77You need to have Perl installed and on your PATH.
78run 'ant gli", or cd to gsdl3/gli and run gli4gs3.sh/bat. This is a graphical tool for building collections.
79
80Greenstone 3:
81
82In the gsdl3 directory, run: 'source gs3-setup.sh' (linux) or 'gs3-setup' (windows).
83To create a new collection, run 'gs3-mkcol.sh/bat <sitename> <collname>'
84Put documents in the import directory (gsdl3/web/sites/<sitename>/collect/<collname>/import), edit the collection configuration file (gsdl3/web/sites/<sitename>/collect/<collname>/etc/collectionConfig.xml), and run 'gs3-build.sh <sitename> <collname>'
85Rename the building directory to index (in gsdl3/web/sites/<sitename>/collect/<collname>) and reload the collection in Tomcat (?a=s&sa=a&st=collection&sn=<collname>), or restart Tomcat.
86
87See the manual for more details about both styles of collection building.
88
89Other Notes:
90---------------
91
92See gsdl3/docs/manual/manual.pdf for more details about the software and installation etc.
93
94Under Linux, Tomcat logs output in gsdl3/comms/jakarta/tomcat/logs/catalina.out.
95
96To prevent Tomcat showing directory listings, edit the gsdl3/comms/jakarta/tomcat/conf/web.xml file and set the value of the "listings" servlet parameter to false.
97
98ant can't seem to do cvs using authenticated cvs on windows:
99there were some classes missing - www.ibiblio.org/maven/jsch/jars/jsch-0.1.17.jar
100many ssh processes seemed to be started up - all waiting in the background for password??
101So should only use anonymous cvs.
102
Note: See TracBrowser for help on using the repository browser.