source: main/trunk/greenstone3/README-SVN.txt@ 35803

Last change on this file since 35803 was 35803, checked in by kjdon, 2 years ago

a few small changes

File size: 4.8 KB
Line 
1Greenstone 3 (GSDL3)
2Copyright (C) 2003 New Zealand Digital Libraries, University Of Waikato
3Greenstone3 comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.txt
4This is free software, and you are welcome to redistribute it
5
6These are some extra notes for installing Greenstone from SVN. Please also
7read the README.txt file for general information as almost all of that applies
8here too.
9
10You will need Java and Ant to run Greenstone 3.
11
12Your Java version should be 1.6 or higher. We recommend Sun Java. You need the
13SDK (development environment). Set the environment variable JAVA_HOME to be
14the root of your Java installation.
15
16Ant (Apache's Java based build tool) can be downloaded from
17http://ant.apache.org/bindownload.cgi. Set the environment variable
18ANT_HOME to be the root of your Ant installation, and make sure the Ant
19executables are on your PATH.
20Greenstone 3 requires Ant 1.8.1 or higher.
21
22Installing Greenstone from an SVN checkout:
23---------------------------------------------------------------------
24
25Make sure an SVN executable is on your PATH.
26
27Checkout the code:
28
29 svn co https://svn.greenstone.org/greenstone3/trunk greenstone3
30
31
32Local Settings
33--------------
34
35You will then need to make sure 'ant' (version 1.8 or greater) and 'javac'
36(along with an appropriate JAVA_HOME environment variable) can be
37found from your command line.
38
39To help with getting such local command-line settings right, we have
40started to build up a set of 'local' folder examples available
41on our svn server. You can browse these at:
42
43 http://trac.greenstone.org/browser/local/
44
45For example, in the top-level folder of your Greenstone3 installation,
46for a build on a 64-bit linux computer you might like to check out:
47
48 svn co https://svn.greenstone.org/local/greenstone3/linux-64bit local
49
50You should then check files like 'local/gs3-setup.bash' and
51'local/gs3-devel.bash' and edit the values there, such as JAVA_HOME,
52to reflect where such programs exist on your local filesystem.
53to reflect where
54
55Prior to compiling, 'cd' into this folder and source the appropriate setup
56file (the developer 'gs3-devel' file if it exists, as in the case of cross
57compiling for Anroid), or else the 'gs3-setup' one (for instance gs-setup.sh,
58gs-setup.bash, or setup.bash)
59
60For example:
61
62 cd local
63 source ./gs3-setup.bash
64 cd ..
65
66Note: running 'source gs3-setup.sh' in the top-level greenstone folder will also source the local version.
67
68Build and install:
69-----------------
70
71In the greenstone3 directory, check and/or edit the build.properties file. In
72 particular, set the Tomcat port number. See 'Configuring your installation' in
73 README.txt for more information.
74
75Note, initial checkouts from SVN have a build.properties.in file. Running
76'ant' (no arguments) will result in the build.properties file being generated
77from the .in file (a straight copy).
78
79Then, run 'ant prepare install'. The two targets can be run separately if you
80like.
81
82The 'prepare' target will download additional code (using SVN and http), so
83you need to be online to run it. The 'install' target can be run offline.
84
85The prepare/install targets will ask you if you accept the properties before
86starting.
87To suppress this prompt, use the -Dproperties.accepted=yes flag. E.g.
88ant -Dproperties.accepted=yes prepare install
89
90To log the output, run
91ant -Dproperties.accepted=yes -logfile build.log prepare install
92
93On Windows, Visual Studio is used for compiling. The VCVARS32.bat script needs
94to be run in the command prompt before compiling with "ant install".
95
96In the greenstone3 directory, you can run 'ant' which will give you a help
97message.
98Running 'ant -projecthelp' gives a list of the targets that you can run - these
99do various things like compile the source code, start up the server etc.
100
101Extra Configuration notes:
102--------------------------------------------------------------
103
104Greenstone 3 uses some parts of Greenstone 2 for collection building,
105including external packages and the Librarian Interface. These will be
106installed during the Greenstone 3 installation process. If you do not want
107collection building capability, please set the disable.collection.building
108property to true in build.properties.
109
110
111Common install/update targets:
112---------------------------------------------------------------------
1131. Install for the first time from SVN:
114svn co https://svn.greenstone.org/greenstone3/trunk greenstone3
115cd greenstone3
116ant prepare install
117
1182. Install for the first time from SVN, mostly offline:
119[online]
120svn co https://svn.greenstone.org/greenstone3/trunk greenstone3
121cd greenstone3
122ant prepare
123[offline]
124ant install
125
1263. Updating your Greenstone installation from SVN (and reconfigure/recompile):
127cd greenstone3
128ant update
129
1304. Updating your Greenstone installation from SVN, mostly offline:
131cd greenstone3
132[online]
133ant svnupdate
134[offline]
135ant -Dnosvn.mode=yes update
136
Note: See TracBrowser for help on using the repository browser.