Changeset 10780
- Timestamp:
- 2005-10-27T13:14:41+13:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/README.txt
r10741 r10780 1 1 Greenstone 3 (GSDL3) 2 2 Copyright (C) 2003 New Zealand Digital Libraries, University Of Waikato 3 G SDL3 comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.txt3 Greenstone3 comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.txt 4 4 This is free software, and you are welcome to redistribute it 5 5 … … 10 10 Ant (Apache's Java based build tool) can be downloaded from http://ant.apache.org/bindownload.cgi. Set the environment variable ANT_HOME to be the root of your Ant installation, and make sure the Ant executables are on your PATH. You may have problems with earlier versions. This has been tested with version 1.6.2 11 11 12 In the g sdl3 directory, you can run 'ant' which will give you a help message.12 In the greenstone3 directory, you can run 'ant' which will give you a help message. 13 13 Running 'ant -projecthelp' gives a list of the targets that you can run - these 14 14 do various things like compile the source code, start up the server etc. … … 19 19 --------------------------------------------------------- 20 20 21 Download the appropriate zip/tar file (g sdl3-x.xx-linux.tar.gz/gsdl3-x.xx-win32.zip/gsdl3-x.xx-macOSX.tar.gz), and unzip/untar it. In the gsdl3 directory, edit the build.properties file if appropriate (see 'Configuring your installation' below), and run 'ant install'.21 Download the appropriate zip/tar file (greenstone-3.xx-linux.tar.gz/greenstone-3.xx-win32.zip/greenstone-3.xx-macOSX.tar.gz), and unzip/untar it. In the greenstone3 directory, edit the build.properties file if appropriate (see 'Configuring your installation' below), and run 'ant install'. 22 22 23 23 Installing Greenstone from a CVS checkout (Linux/Windows/MacOS X): … … 28 28 Checkout the code: 29 29 30 cvs -d :pserver:cvs_ano[email protected]:2402/usr/local/global-cvs/gsdl-src co g sdl330 cvs -d :pserver:cvs_ano[email protected]:2402/usr/local/global-cvs/gsdl-src co greenstone3 31 31 32 32 Build and install: 33 33 34 In the g sdl3 directory, edit the build.properties file if appropriate (see 'Configuring your installation' below), and run 'ant prepare install'. The two targets can be run separately if you like.34 In the greenstone3 directory, edit the build.properties file if appropriate (see 'Configuring your installation' below), and run 'ant prepare install'. The two targets can be run separately if you like. 35 35 36 36 The 'prepare' target will download additional code (using CVS and http), so you need to be online to run it. The 'install' target can be run offline. … … 63 63 ------------------------------- 64 64 1. Install for the first time from CVS: 65 cvs co g sdl366 cd g sdl365 cvs co greenstone3 66 cd greenstone3 67 67 ant prepare install 68 68 69 69 2. Install for the first time from CVS, mostly offline: 70 70 [online] 71 cvs co g sdl372 cd g sdl371 cvs co greenstone3 72 cd greenstone3 73 73 ant prepare 74 74 [offline] … … 76 76 77 77 3. Install for the first time, with CVS done outside of Ant (if you have problems running CVS commands from Ant): 78 cvs co -P g sdl379 cd g sdl3/packages78 cvs co -P greenstone3 79 cd greenstone3/packages 80 80 cvs co mgpp 81 81 cd .. … … 90 90 91 91 4. Updating your Greenstone installation from CVS (and reconfigure/recompile): 92 cd g sdl392 cd greenstone3 93 93 ant update 94 94 95 95 5. Updating your Greenstone installation from CVS, offline: 96 cd g sdl396 cd greenstone3 97 97 [online] 98 98 ant cvsupdate … … 101 101 102 102 6. Updating your Greenstone installation, with CVS done outside of Ant: 103 cd g sdl3103 cd greenstone3 104 104 cvs update -l 105 105 cvs update -dP bin comms docs lib resources src winutil packages 106 cd web (or the path-to-tomcat/webapps/g sdl3 if have installed greenstone as a webapp in Tomcat, see Using External Tomcat section)106 cd web (or the path-to-tomcat/webapps/greenstone3 if have installed greenstone as a webapp in Tomcat, see Using External Tomcat section) 107 107 cvs update -dP 108 cd g sdl3108 cd greenstone3 109 109 [ if you have greenstone 2 building: 110 110 cvs update -dP gli … … 118 118 Any sub targets can be run by themselves. Run 'ant -projecthelp' for a list of public targets, otherwise you can look at the build.xml file to see which targets depend on other ones. 119 119 120 If you run your install using an external Tomcat, the SOAP web service for localsite (used by the gateway servlet) will not be loaded. You need to start up Tomcat, then run 'ant soap-deploy-site' and accept the defaults for sitename and siteuri (both localsite). If you want to use the gateway servlet without restarting Tomcat, you will need to reload the site information. Visit the URL localhost:8080/g sdl3/gateway?a=s&sa=c (substituting your server name and port number if necessary). See the user guide for more information about run time reconfiguration.120 If you run your install using an external Tomcat, the SOAP web service for localsite (used by the gateway servlet) will not be loaded. You need to start up Tomcat, then run 'ant soap-deploy-site' and accept the defaults for sitename and siteuri (both localsite). If you want to use the gateway servlet without restarting Tomcat, you will need to reload the site information. Visit the URL localhost:8080/greenstone3/gateway?a=s&sa=c (substituting your server name and port number if necessary). See the user guide for more information about run time reconfiguration. 121 121 122 122 Running Greenstone: … … 126 126 These will only start/stop local servers (ones installed by Greenstone). You will need to manually start/stop external Tomcat/mysql. 127 127 128 Greenstone will be available in a browser at "http://localhost:8080/g sdl3".128 Greenstone will be available in a browser at "http://localhost:8080/greenstone3". 129 129 130 130 You can change the port number by changing the 'tomcat.port' property in build.properties, then running 'ant configure'. … … 143 143 ant -Daxis.sitename=xxx -Daxis.siteuri=yyy soap-deploy-site 144 144 145 The service is accessible at http://localhost:8080/g sdl3/services/<siteuri>146 (or http://<computer-web-address>:<port>/g sdl3/services/<siteuri>)145 The service is accessible at http://localhost:8080/greenstone3/services/<siteuri> 146 (or http://<computer-web-address>:<port>/greenstone3/services/<siteuri>) 147 147 148 148 Building Collections: … … 154 154 155 155 You need to have Perl installed and on your PATH. Perl is included as part of the Windows binary distribution. 156 run 'ant gli", or cd to g sdl3/gli and run gli4gs3.sh/bat. This is a graphical tool for building collections. Once you have created and built a collection, you can see it by clicking 'Preview collection' on the Build panel.156 run 'ant gli", or cd to greenstone3/gli and run gli4gs3.sh/bat. This is a graphical tool for building collections. Once you have created and built a collection, you can see it by clicking 'Preview collection' on the Build panel. 157 157 158 158 Note that GLI doesn't start up the Greenstone server (Tomcat/mysql) so you should run 'ant start' before previewing your collection. 159 159 Greenstone 3: 160 160 161 In the g sdl3 directory, run: 'source gs3-setup.sh' (Linux/Mac OS X) or 'gs3-setup' (windows).161 In the greenstone3 directory, run: 'source gs3-setup.sh' (Linux/Mac OS X) or 'gs3-setup' (windows). 162 162 To create a new collection, run 'gs3-mkcol.sh/bat <sitename> <collname>' 163 Put documents in the import directory (g sdl3/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>'164 Rename the building directory to index (in g sdl3/web/sites/<sitename>/collect/<collname>) and reload the collection in Tomcat (?a=s&sa=a&st=collection&sn=<collname>), or restart Tomcat.163 Put documents in the import directory (greenstone3/web/sites/<sitename>/collect/<collname>/import), edit the collection configuration file (greenstone3/web/sites/<sitename>/collect/<collname>/etc/collectionConfig.xml), and run 'gs3-build.sh <sitename> <collname>' 164 Rename the building directory to index (in greenstone3/web/sites/<sitename>/collect/<collname>) and reload the collection in Tomcat (?a=s&sa=a&st=collection&sn=<collname>), or restart Tomcat. 165 165 166 166 See the manual for more details about both styles of collection building. … … 169 169 --------------- 170 170 171 See g sdl3/docs/manual/manual.pdf for more details about the software and installation etc.172 173 Under Linux, Tomcat logs output in g sdl3/comms/jakarta/tomcat/logs/catalina.out.174 175 To prevent Tomcat showing directory listings, edit the g sdl3/comms/jakarta/tomcat/conf/web.xml file and set the value of the "listings" servlet parameter to false.171 See greenstone3/docs/manual/manual.pdf for more details about the software and installation etc. 172 173 Under Linux, Tomcat logs output in greenstone3/comms/jakarta/tomcat/logs/catalina.out. 174 175 To prevent Tomcat showing directory listings, edit the greenstone3/comms/jakarta/tomcat/conf/web.xml file and set the value of the "listings" servlet parameter to false. 176 176 177 177 ant can't seem to do cvs using authenticated cvs on windows: … … 192 192 A. Add in the Greenstone context to Tomcat's server.xml (In the Host name="localhost".. element) 193 193 194 <Context path="/g sdl3" docBase="path-to-gsdl3/web" debug="1"194 <Context path="/greenstone3" docBase="path-to-greenstone3/web" debug="1" 195 195 reloadable="true"><Resources allowLinking='true'/></Context> 196 196 197 B. Alternatively, you can move (and rename) the g sdl3/web directory to tomcat/webapps/gsdl3 (i.e. the resulting directories will be like198 tomcat/webapps/g sdl3/WEB-INF, no web directory). This should be done after running the initial 'ant [prepare] install'.197 B. Alternatively, you can move (and rename) the greenstone3/web directory to tomcat/webapps/greenstone3 (i.e. the resulting directories will be like 198 tomcat/webapps/greenstone3/WEB-INF, no web directory). This should be done after running the initial 'ant [prepare] install'. 199 199 You will need to set the web.home property in the build.properties file 200 200 i.e. 201 web.home=${tomcat.installed.path}/webapps/g sdl3201 web.home=${tomcat.installed.path}/webapps/greenstone3 202 202 And then run 'ant configure-web' to reset gsdl3home. 203 203 … … 208 208 209 209 These JNI bits are located by default in the lib/jni directory. There are two ways to get them into Tomcat: 210 A: Keep all the Greenstone stuff inside the g sdl3 directory, and just modify the environment that Tomcat runs in211 212 Set LD_LIBRARY_PATH (linux) or PATH (windows) to include the g sdl3/lib/jni directory.213 Add all the jar files in g sdl3/lib/jni directory to the CLASSPATH, then edit tomcats setclasspath.sh/bat to use the system CLASSPATH.210 A: Keep all the Greenstone stuff inside the greenstone3 directory, and just modify the environment that Tomcat runs in 211 212 Set LD_LIBRARY_PATH (linux) or PATH (windows) to include the greenstone3/lib/jni directory. 213 Add all the jar files in greenstone3/lib/jni directory to the CLASSPATH, then edit tomcats setclasspath.sh/bat to use the system CLASSPATH. 214 214 (in setclasspath.bat, change 215 215 set CLASSPATH=%JAVA_HOME%\lib\tools.jar … … 231 231 232 232 B: Copy the files into Tomcat installation: 233 Move the g sdl3/lib/jni jar files into tomcat's shared/lib directory.234 Move the g sdl3/lib/jni library files (.so for linux, .dll for windows) into shared/classes, and set LD_LIBARARY_PATH (linux) or PATH (windows) to include this directory.233 Move the greenstone3/lib/jni jar files into tomcat's shared/lib directory. 234 Move the greenstone3/lib/jni library files (.so for linux, .dll for windows) into shared/classes, and set LD_LIBARARY_PATH (linux) or PATH (windows) to include this directory. 235 235 This has the advantage that you can use this for other webapps without modifying the Tomcat environment. 236 236 … … 250 250 GRANT SELECT ON *.* TO gsdl3reader@localhost identified by 'reader-password'; 251 251 252 You will need to edit the g sdl3/web/WEB-INF/classes/global.properties file and set the two passwords that you used in here:252 You will need to edit the greenstone3/web/WEB-INF/classes/global.properties file and set the two passwords that you used in here: 253 253 mysql.admin.password and mysql.reader.password 254 254 The mysql.tcp.port property specified here should be set to the port that your mysql is running on. (default 3306). … … 258 258 259 259 Close mysql, then run 260 mysql localsite_gs3mgdemo < <path-to-g sdl3>/web/sites/localsite/collect/gs3mgdemo/mysqldatadump.sql260 mysql localsite_gs3mgdemo < <path-to-greenstone3>/web/sites/localsite/collect/gs3mgdemo/mysqldatadump.sql 261 261 262 262 (Note that if you have installed the Greenstone web directory into Tomcats webapps dir, then this command will be 263 mysql localsite_gs3mgdemo < <path-to-tomcat>/webapps/g sdl3/sites/localsite/collect/gs3mgdemo/mysqldatadump.sql )263 mysql localsite_gs3mgdemo < <path-to-tomcat>/webapps/greenstone3/sites/localsite/collect/gs3mgdemo/mysqldatadump.sql ) 264 264 265 265 You may need to run this using '--user=root -p'
Note:
See TracChangeset
for help on using the changeset viewer.