Changeset 3640


Ignore:
Timestamp:
2003-01-06T11:49:51+13:00 (21 years ago)
Author:
kjdon
Message:

changed the installation stuff a bit. The things that should only be done once
are in install.bash, and things that can be repeated, like compilation, are
in update.bash.

Location:
trunk/gsdl3
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/INSTALL

    r3637 r3640  
    88source setup.bash
    99
    10 Note: the second setup.bash is needed to add the newly created jar files to teh CLASSPATH
     10Note: the second setup.bash is needed to add the newly created jar files to the CLASSPATH
    1111
    1212if you want to use soap, also run
    1313install-soap.bash
     14you shouldn't run this more than once.
    1415
    1516You should now be able to run greenstone - go to localhost:8080/gsdl3, and 'run the library servlet'.
    1617
    17 If you run these install scripts more than once you end up with multiple entries in some config files.
    18 If you are getting problems, edit gsdl3/comms/tomcat/jakarta/conf/server.xml and remove any duplicates of <Context> elements.
     18Do not run install.bash more than once. If you need to update your stuff from cvs, or recompile things etc, you can run update.bash.
    1919
    2020Some notes for subsequent running of gsdl3:
  • trunk/gsdl3/install.bash

    r3636 r3640  
    1414#export CVSROOT=:pserver:[email protected]:2402/usr/local/global-cvs/gsdl-src
    1515
    16 #make sure we have the current GSDL3
     16#make sure we have the current GSDL3 - this also prunes empty directories
    1717cvs update -dRP
    1818
    19 # make mgpp
     19# get mgpp
    2020cd packages
    2121# check out mgpp
    2222cvs co mgpp
    23 cd mgpp
    24 ./configure --prefix $GSDL3HOME
    25 make
    26 make install
    27 CLASSPATH=$GSDL3HOME/lib/java/mgpp.jar:$CLASSPATH
    2823cd $GSDL3HOME
    2924
     
    3429cd $GSDL3HOME
    3530
    36 # make the java packages
    37 cd src/java/org/greenstone/gdbm
    38 make
    39 make install
    40 CLASSPATH=$GSDL3HOME/lib/java/gdbm.jar:$CLASSPATH
    41 cd $GSDL3HOME
    42 
    43 cd src/java/org/greenstone/testing
    44 make
    45 make install
    46 CLASSPATH=$GSDL3HOME/lib/java/jutest.jar:$CLASSPATH
    47 cd $GSDL3HOME
    48 
    49 cd src/java/org/greenstone/gsdl3
    50 make
    51 make install
    52 CLASSPATH=$GSDL3HOME/lib/java/gsdl3.jar:$CLASSPATH
    53 cd $GSDL3HOME
    54 
    55 cd src/java/org/greenstone/applet/phind
    56 make
    57 make install
    58 CLASSPATH=$GSDL3HOME/lib/java/Phind.jar:$CLASSPATH
    59 cd $GSDL3HOME
    6031
    6132#setup sample collection
     
    6637cd $GSDL3HOME
    6738
    68 # make the javadocs
    69 JAVADOCDIR=$GSDL3HOME/docs/javadoc
    70 mkdir -p $JAVADOCDIR
    71 javadoc -d $JAVADOCDIR -private -link http://www.cs.waikato.ac.nz/~nzdl/gsdl3/javadocs/gathaen/ -link http://www.scms.waikato.ac.nz/help/reference/jdk1.2/docs/api/ -link http://www.cs.waikato.ac.nz/~ml/weka/doc_book/ `find src -name '*.java'` `find packages/ -name '*.java'` > $JAVADOCDIR/javadoc_log
    7239
    7340#set up tomcat
     
    9461mv server.xml comms/tomcat/jakarta/conf/server.xml
    9562
    96 #compile the test servlet
    97 cd web/WEB-INF/classes
    98 javac TestServlet.java
    99 cd $GSDL3HOME
    10063
    10164#make everyone happy by giving the right permissions to the shell scripts
    10265chmod a+x comms/tomcat/jakarta/bin/*.sh
    10366
    104 #start tomcat
    105 comms/tomcat/jakarta-tomcat-4.0.1/bin/shutdown.sh
    106 comms/tomcat/jakarta-tomcat-4.0.1/bin/startup.sh
     67#now do the compiling etc by calling update.bash
     68update.bash
    10769
    108 #NOTE: if you recompile anything, you need to shutdown and restart tomcat
    109 #to shutdown:
    110 #comms/tomcat/jakarta-tomcat-4.0.1/bin/shutdown.sh
    111 #to startup:
    112 #comms/tomcat/jakarta-tomcat-4.0.1/bin/startup.sh
    113 
    114 
    115 
Note: See TracChangeset for help on using the changeset viewer.