1 | =======================================
|
---|
2 | | Eurovision -- Let it Sparkle/Sparql |
|
---|
3 | =======================================
|
---|
4 | | Compilation/Installation |
|
---|
5 | ---------------------------------------
|
---|
6 |
|
---|
7 | --
|
---|
8 | 1. Requirements
|
---|
9 | --
|
---|
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 |
|
---|
17 | Sgvizler2 in the Apache Jena extension uses:
|
---|
18 |
|
---|
19 | npm, nodejs
|
---|
20 |
|
---|
21 |
|
---|
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
|
---|
27 | sudo apt install npm
|
---|
28 |
|
---|
29 | For editing config files, our preference is to use emacs:
|
---|
30 |
|
---|
31 | sudo apt install emacs
|
---|
32 |
|
---|
33 | --
|
---|
34 | 2. Environemts Variable Settings
|
---|
35 | --
|
---|
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 |
|
---|
46 | --
|
---|
47 | 3. Checkout and Prepare core Greenstone3 system
|
---|
48 | --
|
---|
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 |
|
---|
67 | --
|
---|
68 | 4. Test you have an operational Greenstone3 base DL server:
|
---|
69 | --
|
---|
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 |
|
---|
83 | --
|
---|
84 | 5. Checkout and compile the Apache Jena Triplestore extension:
|
---|
85 | --
|
---|
86 | svn co https://svn.greenstone.org/gs2-extensions/apache-jena/trunk/src gs2build/ext/apache-jena
|
---|
87 |
|
---|
88 | pushd gs2build/ext/apache-jena/
|
---|
89 | ./CASCADE-MAKE.sh
|
---|
90 | popd
|
---|
91 |
|
---|
92 | --
|
---|
93 | 6. Test your Sparql endpoint:
|
---|
94 | --
|
---|
95 | Run the Triplestore server:
|
---|
96 |
|
---|
97 | gs-triplestore-server3
|
---|
98 |
|
---|
99 | In a browser visit:
|
---|
100 |
|
---|
101 | http://localhost:4040
|
---|
102 |
|
---|
103 | Similar note about to the one above in (4) if setup/access is on/to a remote machine
|
---|
104 |
|
---|
105 | Stop gs-triplestore-server3 by pressing Control-C
|
---|
106 |
|
---|
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 |
|
---|
120 |
|
---|
121 |
|
---|
122 |
|
---|