[35131] | 1 | =======================================
|
---|
| 2 | | Eurovision -- Let it Sparkle/Sparql |
|
---|
| 3 | =======================================
|
---|
| 4 | | Compilation/Installation |
|
---|
| 5 | ---------------------------------------
|
---|
[35130] | 6 |
|
---|
[35146] | 7 | --
|
---|
[35130] | 8 | 1. Requirements
|
---|
[35146] | 9 | --
|
---|
[35130] | 10 | Core command-line tools used by Greenstone3 are:
|
---|
| 11 |
|
---|
| 12 | svn
|
---|
| 13 | make, autoconf, gcc, g++
|
---|
| 14 | ant, javac
|
---|
| 15 | libz, imagemagick, wget
|
---|
| 16 |
|
---|
[35146] | 17 | Sgvizler2 in the Apache Jena extension uses:
|
---|
| 18 |
|
---|
| 19 | npm, nodejs
|
---|
| 20 |
|
---|
| 21 |
|
---|
[35130] | 22 | These can be installed on a Debian10 distribution, for example,
|
---|
| 23 | with:
|
---|
| 24 |
|
---|
| 25 | sudo apt update
|
---|
| 26 | sudo apt install subversion build-essential openjdk-11-jdk ant libz-dev, imagemagick wget
|
---|
[35146] | 27 | sudo apt install npm
|
---|
| 28 |
|
---|
[35130] | 29 | For editing config files, our preference is to use emacs:
|
---|
| 30 |
|
---|
| 31 | sudo apt install emacs
|
---|
| 32 |
|
---|
[35146] | 33 | --
|
---|
[35130] | 34 | 2. Environemts Variable Settings
|
---|
[35146] | 35 | --
|
---|
[35130] | 36 | For the above Debian10 setup, set the following environment variables:
|
---|
| 37 |
|
---|
| 38 | export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
|
---|
| 39 | export PATH=$JAVA_HOME/bin:$PATH
|
---|
| 40 |
|
---|
| 41 | export CFLAGS=-fPIC
|
---|
| 42 | export JAVACFLAGS="-source 1.6 -target 1.6"
|
---|
| 43 |
|
---|
| 44 | Adjust for your specific environemnt as necessary
|
---|
| 45 |
|
---|
[35146] | 46 | --
|
---|
[35130] | 47 | 3. Checkout and Prepare core Greenstone3 system
|
---|
[35146] | 48 | --
|
---|
[35130] | 49 | svn co https://svn.greenstone.org/main/trunk/greenstone3 greenstone3-svn
|
---|
| 50 | cd greenstone3-svn
|
---|
| 51 |
|
---|
| 52 | To generate a default 'build.properties'
|
---|
| 53 |
|
---|
| 54 | ant
|
---|
| 55 |
|
---|
| 56 | To check out GS2 building code:
|
---|
| 57 |
|
---|
| 58 | ant prepare
|
---|
| 59 |
|
---|
| 60 |
|
---|
| 61 | Edit build.xml line 722 from:
|
---|
| 62 |
|
---|
| 63 | <condition property="gs2.opt.args" value="${opt.gnomelibext.arg} " else="--disable-mg --disable-mgpp --disable-accentfold --disable-gdbm --disable-sqlite">
|
---|
| 64 | to:
|
---|
| 65 | <condition property="gs2.opt.args" value="${opt.gnomelibext.arg} --disable-wvware " else="--disable-mg --disable-mgpp --disable-accentfold --disable-gdbm --disable-sqlite">
|
---|
| 66 |
|
---|
[35146] | 67 | --
|
---|
[35136] | 68 | 4. Test you have an operational Greenstone3 base DL server:
|
---|
[35146] | 69 | --
|
---|
[35130] | 70 | source ./gs3-setup.sh
|
---|
| 71 | ant start
|
---|
| 72 |
|
---|
| 73 | In your browser, visit:
|
---|
| 74 |
|
---|
| 75 | http://localhost:8383/greenstone3/library
|
---|
| 76 |
|
---|
| 77 | If working on a remote compute, such as a Google Compute Engine, use its console/dashboard
|
---|
| 78 | to look up the IP number of the machine, and also add in a firewall rule to open up
|
---|
| 79 | port 8080
|
---|
| 80 |
|
---|
| 81 | ant stop
|
---|
| 82 |
|
---|
[35146] | 83 | --
|
---|
[35132] | 84 | 5. Checkout and compile the Apache Jena Triplestore extension:
|
---|
[35146] | 85 | --
|
---|
[35131] | 86 | svn co https://svn.greenstone.org/gs2-extensions/apache-jena/trunk/src gs2build/ext/apache-jena
|
---|
[35130] | 87 |
|
---|
[35131] | 88 | pushd gs2build/ext/apache-jena/
|
---|
| 89 | ./CASCADE-MAKE.sh
|
---|
| 90 | popd
|
---|
[35130] | 91 |
|
---|
[35146] | 92 | --
|
---|
[35132] | 93 | 6. Test your Sparql endpoint:
|
---|
[35146] | 94 | --
|
---|
[35131] | 95 | Run the Triplestore server:
|
---|
[35130] | 96 |
|
---|
[35146] | 97 | gs-triplestore-server3
|
---|
[35131] | 98 |
|
---|
| 99 | In a browser visit:
|
---|
[35130] | 100 |
|
---|
[35146] | 101 | http://localhost:4040
|
---|
[35130] | 102 |
|
---|
[35132] | 103 | Similar note about to the one above in (4) if setup/access is on/to a remote machine
|
---|
[35131] | 104 |
|
---|
[35146] | 105 | Stop gs-triplestore-server3 by pressing Control-C
|
---|
[35131] | 106 |
|
---|
[35132] | 107 |
|
---|
| 108 | ========
|
---|
| 109 | Roadmap:
|
---|
| 110 | ========
|
---|
| 111 |
|
---|
| 112 | You are now ready to move on to CONFIGURE.txt, where you will checkout and
|
---|
| 113 | setup the Eurovision-LOD interface and site
|
---|
| 114 |
|
---|
| 115 | After that follow BUILDING.txt to populate your collection Eurovision
|
---|
| 116 | content, and built it.
|
---|
| 117 |
|
---|
| 118 |
|
---|
| 119 |
|
---|
[35131] | 120 |
|
---|
| 121 |
|
---|
| 122 |
|
---|