Changeset 19839


Ignore:
Timestamp:
2009-06-15T14:36:18+12:00 (15 years ago)
Author:
kjdon
Message:

some changes for new setup

Location:
greenstone3/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/README-SVN.txt

    r15188 r19839  
    44This is free software, and you are welcome to redistribute it
    55
    6 These are some extra notes for installing Greenstone from SVN. Please also read the README.txt file for general information as almost all of that applies here too.
     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.4 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. You may have problems with earlier versions.
     20This has been tested with version 1.6.2
    721
    822Installing Greenstone from an SVN checkout:
     
    1731Build and install:
    1832
    19 In the greenstone3 directory, edit the build.properties file (see 'Configuring your installation' in README.txt), and run 'ant prepare install'. The two targets can be run separately if you like.
    2033
    21 The 'prepare' target will download additional code (using SVN and http), so you need to be online to run it. The 'install' target can be run offline.
     34In the greenstone3 directory, check and/or edit the build.properties file. In
     35 particular, set the Tomcat port number. See 'Configuring your installation' in
     36 README.txt for more information.
    2237
    23 The prepare/install targets will ask you if you accept the properties before starting.
     38Note, initial  checkouts from SVN have a build.properties.in file. Running
     39'ant' will result in the build.properties file being generated from the .in
     40file (a straight copy).
     41
     42Then, run 'ant prepare install'. The two targets can be run separately if you
     43like.
     44
     45The 'prepare' target will download additional code (using SVN and http), so
     46you need to be online to run it. The 'install' target can be run offline.
     47
     48The prepare/install targets will ask you if you accept the properties before
     49starting.
    2450To suppress this prompt, use the -Dproperties.accepted=yes flag. E.g.
    25 ant -Dproperties.accepted=yes prepare install (from CVS), or
     51ant -Dproperties.accepted=yes prepare install
     52
    2653To log the output, run
    27 ant -Dproperties.accepted=yes -logfile build.log prepare install (from CVS), or
     54ant -Dproperties.accepted=yes -logfile build.log prepare install
     55
     56On Windows, Visual Studio is used for compiling. The VCVARS32.bat script needs
     57to be run in the command prompt before compiling with "ant install".
     58
     59In the greenstone3 directory, you can run 'ant' which will give you a help
     60message.
     61Running 'ant -projecthelp' gives a list of the targets that you can run - these
     62do various things like compile the source code, start up the server etc.
    2863
    2964Extra Configuration notes:
     
    3368including external packages and the Librarian Interface. These will be
    3469installed during the Greenstone 3 installation process. If you do not want
    35 collection building capability, please set the disable.collection.building property to true in build.properties.
     70collection building capability, please set the disable.collection.building
     71property to true in build.properties.
    3672
    3773
  • greenstone3/trunk/README.txt

    r15385 r19839  
    44This is free software, and you are welcome to redistribute it
    55
    6 You will need Java and Ant to run Greenstone 3.
    7 
    8 Your Java version should be 1.4 or higher. We recommend Sun Java. You need the SDK (development environment). Set the environment variable JAVA_HOME to be the root of your Java installation.
    9 
    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 
    12 In the greenstone3 directory, you can run 'ant' which will give you a help message.
    13 Running 'ant -projecthelp' gives a list of the targets that you can run - these
    14 do various things like compile the source code, start up the server etc.
    15 
    166Installing Greenstone
    177---------------------------------------------------------
     
    2313See the README-SVN.txt file for extra notes about installing directly from SVN.
    2414
     15Greenstone 3 requires Java and Ant to run. These may be installed during
     16Greenstone installation.
     17
    2518Running Greenstone:
    2619---------------------------------------------------------
    2720
    28 To start up Greenstone, select Greenstone3 Digital Library from the Start menu (Windows), or run gs3-server.sh/bat. This launches a small server program, which starts up Tomcat and launches a browser. A small window pops up which allows you to chnage some settings for your library and restart the Tomcat server. Closing this program will stop Tomcat running.
    29 
    30 Alternatively, you can start Tomcat directly through using Ant. 'ant start', 'ant restart' and 'ant stop' starts, restarts and shuts down Tomcat, respectively. This will only start/stop a local server (one installed by Greenstone). You will need to manually start/stop an external Tomcat (see below for notes about using a version of Tomcat external to Greenstone).
    31 
    32 Once the Tomcat server is running, Greenstone will be available in a browser at "http://localhost:8080/greenstone3" (or whatever port you specified during the
    33 installation process).
    34 You can change the port number using File->Settings in the server program, or by changing the 'tomcat.port' property in build.properties, then running 'ant configure'.
     21To start up Greenstone, select Greenstone3 Digital Library from the Start menu
     22(Windows), or run gs3-server.sh/bat. This launches a small server program
     23which starts up Tomcat and launches a browser. A small window pops up which
     24allows you to change some settings for your library and restart the Tomcat
     25server. Closing this program will stop Tomcat running.
     26
     27Alternatively, you can start Tomcat directly through using Ant. 'ant start',
     28'ant restart' and 'ant stop' starts, restarts and shuts down Tomcat,
     29respectively. This will only start/stop a local server (one installed by
     30Greenstone). You will need to manually start/stop an external Tomcat
     31(see below for notes about using a version of Tomcat external to Greenstone).
     32
     33Once the Tomcat server is running, Greenstone will be available in a browser
     34at "http://localhost:8080/greenstone3" (or whatever port you specified
     35during the installation process).
     36You can change the port number using File->Settings in the server program, or
     37by changing the 'tomcat.port' property in build.properties, then running
     38'ant configure'.
    3539
    3640Building Collections:
     
    3943You need to have Perl installed and on your PATH. Perl is included as part of
    4044the Windows binary distribution.
    41 You can build collections using the Greenstone Librarian Interface (GLI). To start GLI, run  'ant gli", or cd to greenstone3/gli and run gli4gs3.sh/bat.
     45
     46You can build collections using the Greenstone Librarian Interface (GLI).
     47To start GLI, select it from the Start Menu (Windows), run 'ant gli" from the
     48greenstone3 directory, or cd to greenstone3/gli and run gli.sh/bat.
     49
    4250Once you have created and built a collection, you can see it by clicking 'Preview collection' on the Build panel.
    43 
    44 Note that GLI doesn't start up the Greenstone Tomcat server so you should
    45 run 'ant start' before previewing your collection.
    46 
    4751
    4852Greenstone Admin
     
    5458-------------------------------------------------------
    5559
    56 Greenstone comes with Apache Axis installed as part of the Greenstone web application. However, no SOAP services are deployed by default.
    57 
    58 To deploy a SOAP server for localsite, run 'ant deploy-localsite'. You should now be able to see all localsite's collections through the gateway servlet. (http://localhost:8080/greenstone3/gateway)
     60Greenstone comes with Apache Axis installed as part of the Greenstone web
     61application. However, no SOAP services are deployed by default.
     62
     63To deploy a SOAP server for localsite, run 'ant deploy-localsite'. You should
     64now be able to see all localsite's collections through the gateway servlet.
     65(http://localhost:8080/greenstone3/gateway)
    5966
    6067To set up a SOAP server on a new site, run
    6168ant soap-deploy-site
    62 This 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.
     69This will prompt you for the sitename (the directory name), and the site uri
     70- this should be a unique identifier for the site's web service.
    6371
    6472For a non-interactive version, run
    6573ant -Daxis.sitename=xxx -Daxis.siteuri=yyy soap-deploy-site
    6674
    67 The service is accessible at http://localhost:8080/greenstone3/services/<siteuri>
     75The service is accessible at
     76http://localhost:8080/greenstone3/services/<siteuri>
     77
    6878(or http://<computer-web-address>:<port>/greenstone3/services/<siteuri>)
    6979
    70 Note: Deploying a SOAP service for any site other than localsite requires the Greenstone source code to be installed. This is not installed by default for a binary distribution. To get the source code, re-run the installer, select custom install and deselect everything except the source code.
     80Note: Deploying a SOAP service for any site other than localsite requires
     81the Greenstone source code to be installed. This is not installed by default
     82for a binary distribution. To get the source code, re-run the installer,
     83select custom install and deselect everything except the source code.
    7184
    7285Using External Tomcat:
     
    7487
    7588If you want to use an existing Tomcat, set the path to its base directory
    76 in build.properties (tomcat.installed.path). Also set the tomcat.port property to be the port you are running Tomcat on, and change tomcat.server if the web address is not localhost. Then run 'ant configure'.
     89in build.properties (tomcat.installed.path). Also set the tomcat.port
     90property to be the port you are running Tomcat on, and change tomcat.server
     91if the web address is not localhost. Then run 'ant configure'.
    7792
    7893 You will need to modify the Tomcat setup slightly.
     
    80951. Tell Tomcat about the Greenstone web app. There are two ways to do this.
    8196
    82 A. Copy the file greenstone3/resources/tomcat/greenstone3.xml into Tomcat's conf/Catalina/localhost directory. You'll need to edit the file and replace @gsdl3webhome@ with the full path to the web directory of your greenstone 3 installation. Any path separator is fine here ('/', '\\', '\').
    83 
    84 B. Alternatively, you can move (and rename) the greenstone3/web directory to tomcat/webapps/greenstone3 (i.e. the resulting directories will be like
    85 tomcat/webapps/greenstone3/WEB-INF, no web directory). This should be done after running the initial 'ant install'.
     97A. Copy the file greenstone3/resources/tomcat/greenstone3.xml into Tomcat's
     98conf/Catalina/localhost directory. You'll need to edit the file and
     99replace @gsdl3webhome@ with the full path to the web directory of your
     100greenstone 3 installation. Any path separator is fine here ('/', '\\', '\').
     101
     102B. Alternatively, you can move (and rename) the greenstone3/web directory to
     103tomcat/webapps/greenstone3 (i.e. the resulting directories will be like
     104tomcat/webapps/greenstone3/WEB-INF, no web directory). This should be done
     105after running the initial 'ant install'.
    86106
    87107You will need to set the web.home property in the build.properties file
     
    91111
    921122. Set up the JNI libraries and Java wrappers.
    93 JNI libraries and their Java wrappers cannot go into the web app. The libraries need to be loaded by the same class loader as their wrappers. The libraries need to be in java.library.path, and I think get loaded by the system class loader.
     113JNI libraries and their Java wrappers cannot go into the web app. The
     114libraries need to be loaded by the same class loader as their wrappers. The
     115libraries need to be in java.library.path, and I think get loaded by the
     116system class loader.
    94117The wrappers need to be loaded by this too.
    95118
    96 These JNI bits are located by default in the lib/jni directory. There are two ways to get them into Tomcat:
    97 A: Keep all the Greenstone stuff inside the greenstone3 directory, and just modify the environment that Tomcat runs in
    98 
    99 Set LD_LIBRARY_PATH (GNU/Linux), DYLD_LIBRARY_PATH (Mac OS X) or PATH/Path (windows) to include the  greenstone3/lib/jni directory.
    100 Add all the jar files in greenstone3/lib/jni directory to the CLASSPATH, then edit tomcats setclasspath.sh/bat to use the system CLASSPATH.
     119These JNI bits are located by default in the lib/jni directory. There are
     120two ways to get them into Tomcat:
     121A: Keep all the Greenstone stuff inside the greenstone3 directory, and just
     122modify the environment that Tomcat runs in
     123
     124Set LD_LIBRARY_PATH (GNU/Linux), DYLD_LIBRARY_PATH (Mac OS X) or PATH/Path
     125(windows) to include the  greenstone3/lib/jni directory.
     126Add all the jar files in greenstone3/lib/jni directory to the CLASSPATH,
     127then edit tomcats setclasspath.sh/bat to use the system CLASSPATH.
    101128(in setclasspath.bat, change
    102129set CLASSPATH=%JAVA_HOME%\lib\tools.jar
     
    119146B: Copy the files into Tomcat installation:
    120147Move the greenstone3/lib/jni jar files into tomcat's shared/lib directory.
    121 Move the greenstone3/lib/jni library files (.so for GNU/Linux, .jnilib for Mac OS X .dll for Windows) into shared/classes, and set LD_LIBARARY_PATH (GNU/Linux), DYLD_LIBRARY_PATH (Mac OS X) or PATH/Path (Windows) to include this directory.
    122  This has the advantage that you can use this for other webapps without modifying the Tomcat environment.
    123 
    124 Once all these changes have been made, you will need to restart the Tomcat server for them to take effect.
     148Move the greenstone3/lib/jni library files (.so for GNU/Linux, .jnilib for
     149Mac OS X .dll for Windows) into shared/classes, and set LD_LIBARARY_PATH
     150(GNU/Linux), DYLD_LIBRARY_PATH (Mac OS X) or PATH/Path (Windows) to include
     151this directory.
     152 This has the advantage that you can use this for other webapps without
     153modifying the Tomcat environment.
     154
     155Once all these changes have been made, you will need to restart the Tomcat
     156server for them to take effect.
    125157
    126158
     
    133165-----------------------------------------------
    134166
    135 You can set environment variables by going to Control Panel->System->Advanced->Environment Variables.
     167You can set environment variables by going to
     168Control Panel->System->Advanced->Environment Variables.
    136169
    137170Installing from a Source Distribution
    138171----------------------------------------------
    139172
    140 Download the greenstone-3.xx-src.tar.gz package from sourceforge.net/projects/greenstone3, and unpack it.
     173Download the greenstone-3.xx-src.tar.gz package from
     174sourceforge.net/projects/greenstone3, and unpack it.
     175
    141176In the greenstone3 directory, edit the build.properties file and run
    142177ant install
    143178
    144 Tomcat will be installed as part of the prepare process. To stop this set the tomcat.installed.path to be the root of an existing Tomcat installation.
     179Tomcat will be installed as part of the prepare process. To stop this set the
     180tomcat.installed.path to be the root of an existing Tomcat installation.
    145181
    146182* Solaris notes:
Note: See TracChangeset for help on using the changeset viewer.