Changeset 3380
- Timestamp:
- 2002-08-21T13:29:56+12:00 (22 years ago)
- Location:
- trunk/gsdl3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/INSTALL
r3375 r3380 2 2 3 3 1. you also need to get mgpp code - comes in a separate checkout. 4 I once added a directory for mgpp into gsdl3/packages in cvs - now I cant get 5 rid of it, so you need to delete it before you start. 4 6 cd packages 7 rm -r mgpp 5 8 cvs co mgpp 6 9 cd mgpp … … 8 11 make 9 12 make install 10 11 NOte: you need to use your gsdl3 home directory as the prefix for configure 13 cd ../.. 14 15 Note: you need to use your gsdl3 home directory as the prefix for configure 12 16 at this stage - mgpp has been set up properly, but gsdl3 hasn't 13 17 14 18 15 19 2. Make the gsdl3 stuff 20 21 First need to unpack the tomcat stuff, cos we use a jar file from there 22 23 cd comms/tomcat/ 24 25 tar xzvf jakarta-tomcat-4.0.1.tar.gz 26 27 cd ../.. 28 29 source setup.bash - to set up your CLASSPATH 16 30 17 31 do a 'make', then 'make install', in each of the following directories … … 25 39 in sites/localsite/collect/mgppdemo/index/ 26 40 27 untarmgpp-indexfiles.tar.gz41 tar xzvf mgpp-indexfiles.tar.gz 28 42 29 43 this is a collection built using mgpp in greenstone 2 - MGPPGDBMService works 30 44 with this type of collection. 31 45 32 Note, you can use the new Java Queryer program to query this collection: 33 34 java org.greenstone.mgpp.Queryer <basedir> <indexdir> <textdir> 35 36 eg if have a mgpp collection in ./localsite/collect/mgppdemo 37 java org...Queryer ./localsite/collect/mgppdemo/index tt/mgppdemo text/mgppdemo 38 39 you can use any mgpp collection built with gsdl2 - you need to add a 40 buildcfg.xml file to the index directory 46 Note, you can use the new Java Queryer program to query this collection (see 47 RUNNING) 48 41 49 42 50 4. set up the servlet information for tomcat … … 55 63 5. set up tomcat 56 64 57 untar comms/tomcat/jakarta-tomcat-4.0.1.tar.gz 58 59 edit jakarta-tomcat-4.0.1/bin/catalina.sh:65 cd comms/tomcat/jakarta-tomcat-4.0.1 66 67 edit bin/catalina.sh: 60 68 61 69 on line 89 add $CLASSPATH to the CP="...." line ie. CP="$CLASSPATH:..." - this 62 70 sets up the class path properly 63 71 64 you need to edit the tomcat conf/server.xml to add a context for gsdl servlets 65 add this line (putting the correct path for GSDL3HOME) 72 edit conf/server.xml: 73 74 you need add a context for gsdl servlets 75 add these lines (putting the correct path for GSDL3HOME) 66 76 67 77 <!-- GSDL3 Service --> … … 77 87 6. run tomcat 78 88 79 to run tomcat, need to sourcesetup.bash in GSDL3HOME to set up $CLASSPATH89 to run tomcat, you need to have sourced setup.bash in GSDL3HOME to set up $CLASSPATH 80 90 81 91 then cd to comms/tomcat/jakarta-tomcat-4.0.1/bin … … 83 93 run ./startup.sh 84 94 85 to shut down tomcat, run ./shutdown.sh 95 (to shut down tomcat, run ./shutdown.sh) 86 96 87 97 the tomcat server can be accessed on the web via localhost:8080 88 98 89 the greenstone stuff is at /gsdl3 - this uses index.html - has links to the 90 test servlet and the greenstone servlets 99 the greenstone stuff is at localhost:8080/gsdl3 - this uses index.html - has 100 links to the test servlet and the greenstone servlets 101 102 you should be able to run library from the index page 91 103 92 104 System.out/err and cout/cerr go to comms/tomcat/jakarta-tomcat-4.0.1/logs/catalina.out - if need to debug stuff -
trunk/gsdl3/RUNNING
r3358 r3380 33 33 create a new one, or copy the default one to the new location. 34 34 35 Command line library 35 ****************************************************** 36 Servlet: 37 38 need to run setup.bash to set CLASSPATH etc 39 40 Can run the web interface by starting tomcat (see INSTALL) and going to 41 localhost:8080/gsdl3/library 42 43 only mgpp collections can be searched - use mgppdemo, not demo. 44 Currently, only Text search works. 45 46 to change the interface language, you can add &l=fr to the url. fr is the 47 only alternative to en at the moment. 48 49 ******************************************************* 50 Command line libraries 36 51 37 52 need to run setup.bash to set CLASSPATH etc … … 107 122 108 123 124 Collections: 109 125 126 Can use the new java Queryer to test mgpp collections: 127 128 java org.greenstone.mgpp.Queryer <basedir> <indexdir> <textdir> 129 130 eg 131 java org.greenstone.mgpp.Queryer sites/localsite/collect/mgppdemo/index tt/mgppdemo text/mgppdemo 132 133 you can use any mgpp collection built with gsdl2 - you need to add a 134 buildcfg.xml file to the index directory - look at the one for mgppdemo to see 135 what it should look like. 136 137 138 139 140 141 142
Note:
See TracChangeset
for help on using the changeset viewer.