-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDocumentation.txt
139 lines (117 loc) · 4.76 KB
/
Documentation.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
reference : https://sourceforge.net/p/lemur/wiki/Galago%20Installation/
First Connect to internet.
second install pre-requisite,
1- Java
How to install java on ubuntu:
a.sudo apt-get update && apt-get upgrade
b.sudo apt-get install default-jdk
c.java -version :
if (the output is like below, it's in the correct path.): then go to: 2- Maven
output:
openjdk version "11.0.4" 2019-07-16
OpenJDK Runtime Environment (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3)
OpenJDK 64-Bit Server VM (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3, mixed mode, sharing)
else:
d.sudo update-alternatives --config java : this give you the jdk path
output :
/lib/jvm/java-11-openjdk-amd64/bin/java
e.sudo gedit /etc/environment
f.if (not exist JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64" at the end of the file)
g.add this line to end of file :
h2.source /etc/environment
e3.echo $JAVA_HOME
output in this step:
"/usr/lib/jvm/java-11-openjdk-amd64"
2- Maven
How to install Maven on ubuntu:
Notice:the path below is where you have put the downloaded files, like: /home/USER_NAME/Desktop/Galago/apache-maven-3.6.2-bin.tar.gz
a.cp /home/USER_NAME/Desktop/Galago/apache-maven-3.6.2-bin.tar.gz /tmp
b.sudo tar xf /tmp/apache-maven-*.tar.gz -C /opt
c.mv /opt/apache-maven-3.6.0 /opt/maven
d.sudo gedit /etc/profile.d/maven.sh
e.paste the following configuration in file:
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
export M2_HOME=/opt/maven
export MAVEN_HOME=/opt/maven
export PATH=${M2_HOME}/bin:${PATH}
f.sudo chmod +x /etc/profile.d/maven.sh
g.source /etc/profile.d/maven.sh
h.mvn -v
i.output in this line:
Apache Maven 3.6.2 (40f52333136460af0dc0d7232c0dc0bcf0d9e117; 2019-08-27T19:36:16+04:30)
Maven home: /opt/maven
Java version: 11.0.4, vendor: Ubuntu, runtime: /usr/lib/jvm/java-11-openjdk-amd64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.15.0-65-generic", arch: "amd64", family: "unix"
3- Galago
a.go to galago source folder : cd galago-3.16/
b.enter this command: mvn -DskipTests=true install (notice: it takes 30 minutes)
if (the installation brought up the error about dependency-check-maven 3.3.4):
e1.open pom.xml: gedit pom.xml
e2.find the plugin making the error: (Ctrl+F) 3.3.4
e3.comment the plugin: <!-- -->
e4.go to b.
else:
successful output would be something like this:
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for galago 3.16:
[INFO]
[INFO] galago ............................................. SUCCESS [ 42.601 s]
[INFO] utility ............................................ SUCCESS [ 11.403 s]
[INFO] tupleflow-typebuilder .............................. SUCCESS [ 7.729 s]
[INFO] tupleflow .......................................... SUCCESS [ 4.891 s]
[INFO] eval ............................................... SUCCESS [ 5.547 s]
[INFO] snowball-stemmers .................................. SUCCESS [ 3.615 s]
[INFO] krovetz-stemmer .................................... SUCCESS [ 3.285 s]
[INFO] core ............................................... SUCCESS [ 43.162 s]
[INFO] contrib ............................................ SUCCESS [ 25.643 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:28 min
[INFO] Finished at: 2019-10-05T16:54:28+03:30
[INFO] ------------------------------------------------------------------------
c.enter this command: chmod +x core/target/appassembler/bin/galago
d.enter this command: core/target/appassembler/bin/galago
output of this step:
Type 'galago help <command>' to get more help about any command.
Popular commands:
build
search
batch-search
All commands:
batch-search
build
build-entity-corpus
build-special
build-topdocs
build-window
build-word-dates
chain-jobs
doc
doc-id
doc-name
doccount
dump-connection
dump-corpus
dump-index
dump-index-manifest
dump-key-value
dump-keys
dump-modifier
dump-name-length
dump-term-stats
eval
harvest-links
help
make-corpus
merge-index
overwrite-manifest
pagerank
search
stats
stemmer-conflation
subcollection
transform
xcount
e. (optional) you can set an alias for 'galago' in your system to point out to '/core/target/appassembler/bin/galago'