Changeset 10674


Ignore:
Timestamp:
2005-10-03T15:13:53+13:00 (19 years ago)
Author:
kjdon
Message:

some changes to reflect the binary distribution installation procedure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/README.txt

    r10671 r10674  
    44This is free software, and you are welcome to redistribute it
    55
    6 Installing Greenstone from a binary distribution (Linux):
    7 ---------------------------------------------------------
    8 
    9 Download the gsdl3-x.xx-linux executable file, and run it. Follow the instructions given.
    10 
    11 Installing Greenstone from a binary distribution (Windows):
    12 -----------------------------------------------------------
    13 
    14 Download the gsdl3-x.xx-win32.exe executable file, and double click on it.
    15 Follow the instructions given.
    16 
    17 
    18 Installing Greenstone from a CVS checkout (Linux and Windows):
    19 --------------------------------------------------------------
    20 
    21 Checkout the code:
    22 
    23 cvs -d :pserver:[email protected]:2402/usr/local/global-cvs/gsdl-src co gsdl3
    24 
    25 Build and install:
    26 
    27 Greenstone is built and installed using Ant (Apache's Java based build tool,
    28 http://ant.apache.org). You will need a Java Development
    29 Environment (1.4 or higher, we recommend Sun Java), and Ant installed to use Greenstone. You can download Ant from http://ant.apache.org/bindownload.cgi.
    30 
    31 Set the environment variable JAVA_HOME to be the root of your Java installation.
    32 Set the environment variable ANT_HOME to be the root of you Ant installation.
    33 Make sure the cvs and ant executables are on your Path.
     6You will need Java and Ant to run Greenstone 3.
     7
     8Your Java version should be 1.4 or higher. We recommend Sun Java. If you are installing from a binary distribution, you will only need the JRE (Runtime environment). If you are installing from CVS, you will need the SDK (Development environment).
     9Set the environment variable JAVA_HOME to be the root of your Java installation.
     10
     11Ant (Apache's Java based build tool, http://ant.apache.org) 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.
    3412
    3513In the gsdl3 directory, you can run 'ant' which will give you a help message.
    3614Running 'ant -projecthelp' gives a list of the targets that you can run - these
    37 do various things like compile the source code, startup the server etc.
    38 
    39 For a first time install, run 'ant prepare install'.
     15do various things like compile the source code, start up the server etc.
     16
     17Installing Greenstone from a binary distribution:
     18---------------------------------------------------------
     19
     20Download the appropriate zip file (gsdl3-x.xx-linux.zip/gsdl3-x.xx-win32.zip/gsdl3-x.xx-macOSX.zip), and unzip it. In the gsdl3 directory, edit the build.properties file if appropriate (see 'Configuring your installation' below), and run 'ant install'.
     21
     22Installing Greenstone from a CVS checkout (Linux/Windows/MacOS X):
     23---------------------------------------------------------------------
     24
     25Make sure the CVS executable is on your PATH.
     26
     27Checkout the code:
     28
     29cvs -d :pserver:[email protected]:2402/usr/local/global-cvs/gsdl-src co gsdl3
     30
     31Build and install:
     32
     33In the gsdl3 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
     35The '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.
     36
     37Configuring your installation:
     38------------------------------------
    4039
    4140The file build.properties contains various parameters that can be set by the user. Please check these settings before running the install.
    4241
    43 Greenstone uses the Tomcat servlet container. If you already have Tomcat running, you can set the tomcat.installed.path property to the base directory of your Tomcat installation, and Greenstone will not download its own Tomcat.
    44 It is intended that the same thing will be available for mysql, but this has not been implemented yet.
    45 
    46 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 collection building at all, set the gsdl2.installed.path to any non-empty string.
    47 
    48  The prepare target will ask you if you accept the properties before starting.
     42Greenstone 3 uses the Tomcat servlet container. If you already have Tomcat running, you can set the 'tomcat.installed.path' property to the base directory of your Tomcat installation, and Greenstone will not download/install its own Tomcat. Please read the section "Using External Tomcat" for details about how to configure Tomcat for Greenstone.
     43
     44Greenstone 3 uses mysql for the collection database (with Greenstone 3 native building). If you already have mysql installed, set the 'mysql.installed.path' property to the base directory of your mysql installation, and Greenstone will not download/install mysql. Please read the section "Using external mysql server" for details about how to configure mysql for Greenstone.
     45
     46Greenstone 3 uses some parts of Greenstone 2 for collection building using the Librarian Interface. These will be installed during the Greenstone 3 installation process. If you have Greenstone 2 already installed and want to use that version instead, 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 its own bits. (Note, be careful about compatibility between versions.) If you are using Greenstone 3 from CVS, and don't want to download the Greenstone 2 stuff, set the gsdl2.installed.path to any non-empty string.
     47
     48The prepare/install target will ask you if you accept the properties before starting.
    4949To suppress this prompt, use the -Dproperties.accepted=yes flag. E.g.
    50 ant -Dproperties.accepted=yes prepare install
     50ant -Dproperties.accepted=yes prepare install (from CVS), or
     51ant -Dproperties.accepted=yes install (from binary dist).
    5152
    5253To log the output in build.log, run
    53 ant -Dproperties.accepted=yes -logfile build.log prepare install
    54 
    55 The prepare target will download additional code, so you need to be online to run it. install can be run offline.
    56 
    57 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.)
     54ant -Dproperties.accepted=yes -logfile build.log prepare install (from CVS), or
     55ant -Dproperties.accepted=yes -logfile build.log  install (from binary dist).
     56
     57The compile target, under Linux, does Java and C/C++ compilation. 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.)
    5858
    5959Common install/update targets.
    6060-------------------------------
    61 1. Install for the first time:
     611. Install for the first time from CVS:
    6262cvs co gsdl3
    6363cd gsdl3
    6464ant prepare install
    6565
    66 2. Install for the first time, offline:
     662. Install for the first time from CVS, mostly offline:
    6767[online]
    6868cvs co gsdl3
     
    7272ant install
    7373
    74 3. Install for the first time, cvs done outside of Ant (if you have problems running cvs commands from Ant):
    75 cvs co [-P] gsdl3
    76 cd gsdl3
    77 cvs update -P (run this if you haven't done the checkout with the -P option)
    78 cd packages
     743. Install for the first time, with CVS done outside of Ant (if you have problems running CVS commands from Ant):
     75cvs co -P gsdl3
     76cd gsdl3/packages
    7977cvs co mgpp
    8078cd ..
     
    8886ant -Dnocvs.mode=yes prepare install (prepare needs to be online, install can be done offline)
    8987
    90 4. Updating your Greenstone installation from cvs (and reconfigure/recompile):
     884. Updating your Greenstone installation from CVS (and reconfigure/recompile):
    9189cd gsdl3
    9290ant update
    9391
    94 5. Updating your Greenstone installation, offline:
     925. Updating your Greenstone installation from CVS, offline:
    9593cd gsdl3
    9694[online]
     
    9997ant -Dnocvs.mode=yes update
    10098
    101 6. Updating your Greenstone installation, cvs outside of Ant:
     996. Updating your Greenstone installation, with CVS done outside of Ant:
    102100cd gsdl3
    103101cvs update -l
     
    125123These will only start/stop local servers (ones installed by Greenstone). You will need to manually start/stop external Tomcat/mysql.
    126124
    127 On Windows, if you have installed a binary version, you can also start Greenstone by selecting Greenstone 3 Digital Library from the Start menu.
    128 
    129125Greenstone will be available in a browser at "http://localhost:8080/gsdl3".
    130126
    131 You can change the port number by changing the tomcat.port property in build.properties, then running 'ant configure'.
     127You can change the port number by changing the 'tomcat.port' property in build.properties, then running 'ant configure'.
    132128
    133129
     
    135131-------------------------------
    136132
    137 Greenstone 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.
     133Greenstone comes with Apache Axis installed as part of the Greenstone web application.  A SOAP server on localsite is deployed during installation. You should be able to see all localsite's collections through the gateway servlet.
    138134
    139135To set up a SOAP server on a new site, run
     
    144140ant -Daxis.sitename=xxx -Daxis.siteuri=yyy soap-deploy-site
    145141
     142The service is accessible at http://localhost:8080/gsdl3/services/<siteuri>
     143(or http://<computer-web-address>:<port>/gsdl3/services/<siteuri>)
     144
    146145Building Collections:
    147146-----------------------
     
    151150Greenstone 2:
    152151
    153 You need to have Perl installed and on your PATH.
    154 run  'ant gli", or cd to gsdl3/gli and run gli4gs3.sh/bat. This is a graphical tool for building collections.
     152You need to have Perl installed and on your PATH. Perl is included as part of the Windows binary distribution.
     153run  'ant gli", or cd to gsdl3/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.
    155154
    156155Greenstone 3:
    157156
    158 In the gsdl3 directory, run: 'source gs3-setup.sh' (linux) or 'gs3-setup' (windows).
     157In the gsdl3 directory, run: 'source gs3-setup.sh' (Linux/Mac OS X) or 'gs3-setup' (windows).
    159158To create a new collection, run 'gs3-mkcol.sh/bat <sitename> <collname>'
    160159Put 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>'
     
    193192
    194193B. Alternatively, you can move (and rename) the gsdl3/web directory to tomcat/webapps/gsdl3 (i.e. the resulting directories will be like
    195 tomcat/webapps/gsdl3/WEB-INF, no web directory). This should be done after running the initial 'ant prepare install'.
     194tomcat/webapps/gsdl3/WEB-INF, no web directory). This should be done after running the initial 'ant [prepare] install'.
    196195You will need to set the web.home property in the build.properties file
    197196i.e.
Note: See TracChangeset for help on using the changeset viewer.