Changeset 10117 for trunk/gsdl3/README.txt
- Timestamp:
- 2005-06-15T16:14:06+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/README.txt
r10105 r10117 27 27 Greenstone is built and installed using Ant (Apache's Java based build tool, 28 28 http://ant.apache.org). You will need a Java Development 29 Environment (1.4 or higher), and Ant installed to use Greenstone. You can download Ant from http://ant.apache.org/bindownload.cgi. Set the environment variable JAVA_HOME to be the root of your Java installation. We recommend Sun's Java. 29 Environment (1.4 or higher), and Ant installed to use Greenstone. You can download Ant from http://ant.apache.org/bindownload.cgi. Set the environment variable JAVA_HOME to be the root of your Java installation. We recommend Sun's Java. Greenstone 3 has not been tested with other types of Java. 30 30 31 31 In the gsdl3 directory, you can run 'ant' which will give you a help message. … … 33 33 do various things like compile the source code, startup the server etc. 34 34 35 For a first time install, run 'ant install'.35 For a first time install, run 'ant prepare install'. 36 36 37 The file build.properties contains various parameters that can be set by the user. Please check these settings before running 'ant install'. 38 Greenstone 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. 37 The file build.properties contains various parameters that can be set by the user. Please check these settings before running the install. 39 38 40 The install process will ask you if you accept the properties before starting. 41 For a non-interactive version of the install, run 42 ant -Dproperties.accepted=yes install 39 Greenstone 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. If you do not want to use Greenstone 2 style colleciton building at all, set the gsdl2.installed.path to any non-empty string. 40 41 The prepare target will ask you if you accept the properties before starting. 42 To suppress this prompt, use the -Dproperties.accepted=yes flag. E.g. 43 ant -Dproperties.accepted=yes prepare install 43 44 44 45 To log the output in build.log, run 45 ant -Dproperties.accepted=yes -logfile build.log install 46 ant -Dproperties.accepted=yes -logfile build.log prepare install 47 48 The prepare target will download additional code, so you need to be online to run it. install can be run offline. 46 49 47 50 Under 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.) 51 52 Common install/update targets. 53 ------------------------------- 54 1. Install for the first time: 55 cvs co gsdl3 56 ant prepare install 57 58 2. Install for the first time, offline: 59 [online] 60 cvs co gsdl3 61 ant prepare 62 [offline] 63 ant install 64 65 3. Updating your Greenstone installation from cvs: 66 ant update 67 68 4. Updating your Greenstone installation, offline: 69 [online] 70 ant cvsupdate 71 [offline] 72 ant -Doffline.mode=yes update 73 74 The main targets for installation/update are: 75 configure, configure-c++, clean, compile. 76 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. 48 77 49 78 Running Greenstone: 50 79 ------------------- 51 80 52 To 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. 81 To startup the local 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. 82 These will only start/stop local servers (ones installed by Greenstone). You will need to manually start/stop external Tomcat/mysql. 53 83 54 84 On Windows, if you have installed a binary version, you can also start Greenstone by selecting Greenstone 3 Digital Library from the Start menu. 55 85 56 86 Greenstone will be available in a browser at "http://localhost:8080/gsdl3". 87 88 You can change the port number by changing the tomcat.port property in build.properties, then running 'ant configure'. 89 57 90 58 91 Using SOAP (Linux and Windows): … … 105 138 106 139 If you want to use an existing Tomcat, set the path to its base directory 107 in build.properties (tomcat.installed.path). Then run 'ant install'. If you have already done an install (e.g. using a local Tomcat), you don't need to do it again.140 in build.properties (tomcat.installed.path). Then run 'ant prepare install'. If you have already done an install (e.g. using a local Tomcat), you don't need to do it again. 108 141 109 142 You will need to modify the Tomcat setup slightly. … … 117 150 118 151 B. Alternatively, you can move (and rename) the gsdl3/web directory to tomcat/webapps/gsdl3 (i.e. the resulting directories will be like 119 tomcat/webapps/gsdl3/WEB-INF, no web directory). This should be done after running 'antinstall'.152 tomcat/webapps/gsdl3/WEB-INF, no web directory). This should be done after running the initial 'ant prepare install'. 120 153 You will need to set the web.home property in the build.properties file 121 154 i.e. 122 155 web.home=${tomcat.installed.path}/webapps/gsdl3 123 And then run 'ant configure -web-gsdl3' to reset gsdl3home.156 And then run 'ant configure' to reset gsdl3home. 124 157 125 158 2. Set up the JNI libraries and Java wrappers. … … 131 164 A: Keep all the Greenstone stuff inside the gsdl3 directory, and just modify the environment that Tomcat runs in 132 165 133 set LD_LIBRARY_PATH (linux) or PATH (windows) to includegsdl3/lib/jni directory.134 add all the jar files in gsdl3/lib/jni directory to the CLASSPATH, then edit tomcats setclasspath.sh/bat to use the system CLASSPATH.166 Set LD_LIBRARY_PATH (linux) or PATH (windows) to includethe gsdl3/lib/jni directory. 167 Add all the jar files in gsdl3/lib/jni directory to the CLASSPATH, then edit tomcats setclasspath.sh/bat to use the system CLASSPATH. 135 168 (in setclasspath.bat, change 136 169 set CLASSPATH=%JAVA_HOME%\lib\tools.jar
Note:
See TracChangeset
for help on using the changeset viewer.