-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.html
executable file
·221 lines (193 loc) · 10.6 KB
/
install.html
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
<!DOCTYPE html>
<html lang="en">
<title>Installation</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Fichiers CSS W3-->
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- Fichiers CSS additionnel-->
<link rel="stylesheet" href="styles/additionnalStyle.css?v=<?= filemtime('styles/additionnalStyle.css') ?>">
<!-- Fichiers CSS slideShadow-->
<link rel="stylesheet"
href="https://maxst.icons8.com/vue-static/landings/line-awesome/line-awesome/1.3.0/css/line-awesome.min.css">
<link rel="stylesheet" href="styles/styles.css">
<!-- Favicon -->
<link rel="shortcut icon" type="image/png" href="images/mobilitydb-favicon.png"/>
<body>
<!-- sidebar -->
<div class="w3-sidebar w3-bar-block w3-collapse w3-card mobdb-blue" style="width:200px;" id="mySidebar">
<h4 class="sidebartitle"><a href="#linux" class="w3-bar-item w3-button">Linux</a></h4>
<ul>
<li><a href="#requirements" class="w3-bar-item w3-button">Requirements</a></li>
<li><a href="#buidling-installation" class="w3-bar-item w3-button">Building & Installation</a></li>
</ul>
<h4><a href="#windows" class="w3-bar-item w3-button">Windows</a></h4>
<h4><a href="#docker" class="w3-bar-item w3-button">Docker</a></h4>
</div>
<!-- Navbar -->
<div w3-include-html="navbar.html"></div>
<!-- Pour pas chevaucher la sidebar -->
<div class="w3-main" style="margin-left: 200px;">
<div class="w3-teal">
<!--LINUX -->
<div class="w3-row-padding w3-padding-top-64 w3-container w3-light-grey">
<div class="w3-content">
<div class="w3-margin-right">
<h1 id="linux">Linux</h1>
<!--LINUX Requirements -->
<div class="w3-row-padding w3-container">
<div class="w3-content">
<div class="w3-margin-right">
<h2 id="requirements">Requirements :</h2>
<ul>
<li>PostgreSQL >= 11</li>
<li>CMake >= 3.7</li>
<li>PostGIS >= 2.5</li>
<li>JSON-C</li>
<li>GNU Scientific Library (GSL)</li>
<li>Development files for PostgreSQL, PostGIS/liblwgeom, PROJ, JSON-C</li>
</ul>
<div class="w3-panel w3-card w3-light-grey">
<p>For example, you can build the following command to install all MobilityDB build
dependencies for Debian-based systems:</p>
<div class="w3-code-override notranslate">
apt install build-essential cmake postgresql-server-dev-11 liblwgeom-dev libproj-dev libjson-c-dev libprotobuf-c-dev
</div>
<br>
</div>
</div>
</div>
</div>
<!--LINUX Building & Installation : -->
<div class="w3-row-padding w3-padding-top-64 w3-container">
<div class="w3-content">
<div class="w3-margin-right">
<h2 id="buidling-installation">Building & Installation :</h2>
<div class="w3-panel w3-card w3-light-grey">
<p>Here is the gist:</p>
<div class="w3-code-override notranslate">
git clone https://github.com/MobilityDB/MobilityDB<br>
mkdir MobilityDB/build<br>
cd MobilityDB/build<br>
cmake ..<br>
make<br>
sudo make install<br>
</div>
<p>
The above commands install the master branch. If you want to install another branch, for example, develop, you can replace the first command above as follows:
</p>
<div class="w3-code-override notranslate">
git clone --branch develop https://github.com/MobilityDB/MobilityDB<br>
</div>
<br>
</div>
<div class="w3-panel w3-card w3-light-grey">
<p>You should also set the following in the file postgresql.conf depending on the version of PostGIS you have installed (below we use PostGIS 3):</p>
<div class="w3-code-override notranslate">
shared_preload_libraries = 'postgis-3'<br>
max_locks_per_transaction = 128<br>
</div>
<p>You can replace 'postgis-2.5' above if you want to use PostGIS 2.5.</p>
<p>If you do not preload the PostGIS library you will not be able to load the MobilityDB library and will get an error message such as the following one:</p>
<div class="w3-code-override notranslate">
ERROR: could not load library "/usr/local/pgsql/lib/libMobilityDB-1.0.so": undefined symbol: ST_Distance<br>
</div>
<p>Notice that you can find the location of the postgresql.conf file as given next</p>
<div class="w3-code-override notranslate">
$ which postgres<br>
/usr/local/pgsql/bin/postgres<br>
$ ls /usr/local/pgsql/data/postgresql.conf<br>
/usr/local/pgsql/data/postgresql.conf<br>
</div>
<p>As can be seen, the PostgreSQL binaries are in the bin subdirectory while the postgresql.conf file is in the data subdirectory.</p>
</div>
<div class="w3-panel w3-card w3-light-grey">
<p>
Once MobilityDB is installed, it needs to be enabled in each database you want to use it in. In the example below we use a database named mobility.
</p>
<div class="w3-code-override notranslate">
createdb mobility<br>
psql mobility -c "CREATE EXTENSION PostGIS"<br>
psql mobility -c "CREATE EXTENSION MobilityDB"<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--Windows -->
<div class="w3-row-padding w3-padding-top-64 w3-container w3-white">
<div class="w3-content">
<div class="w3-margin-right">
<h1 id="windows">Windows : </h1>
<p>Coming Soon</p>
</div>
</div>
</div>
<!--Docker -->
<div class="w3-row-padding w3-padding-top-64 w3-container w3-light-grey">
<div class="w3-content">
<div class="w3-margin-right">
<h1 id="docker">Docker Container :</h1>
<div class="w3-row-padding w3-container">
<div class="w3-content">
<div class="w3-margin-right">
<h5>Docker containers with MobilityDB and all its dependencies are available <a href="https://github.com/MobilityDB/MobilityDB-docker" target="_blank" >here</a>. These images
are based on
the official <a href="https://github.com/docker-library/postgres" target="_blank">Postgres</a> and <a href="https://github.com/postgis/docker-postgis" target="_blank">Postgis</a> docker images, please refer to them for more
information.</h5>
<div class="w3-panel w3-card w3-light-grey">
<p>If you have docker installed in your system, follow those steps :</p>
<ul>
<li><p>Download the latest most up-to-date image of MobilityDB</p></li>
<div class="w3-code-override notranslate">
docker pull mobilitydb/mobilitydb
</div>
<li><p>Create a volume container on the host, that we will use to persist the PostgreSQL
database files outside of the MobilityDB container.</p></li>
<div class="w3-code-override notranslate">
docker volume create mobilitydb_data
</div>
<li><p>Executes the binary image of PostgreSQL, PostGIS,
and MobilityDB with the TCP port 5432 in the container mapped to port 25432 on the Docker host
(user = pw = docker, db = mobilitydb)</p></li>
<div class="w3-code-override notranslate">
docker run --name "mobilitydb" -d -p 25432:5432 -v mobilitydb_data:/var/lib/postgresql mobilitydb/mobilitydb
</div>
<li><p>connect to the database using psql.</p></li>
<div class="w3-code-override notranslate">
psql -h localhost -p 25432 -d mobilitydb -U docker
</div>
<br>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Footer -->
<div w3-include-html="footer.html"></div>
</div>
</div>
</body>
<script src="js/includeHTML.js"></script>
<script>
((window.gitter = {}).chat = {}).options = {
room: 'MobilityDBProject/MobilityDB'
};
</script>
<script src="https://sidecar.gitter.im/dist/sidecar.v1.js" async defer></script>
<script>includeHTML();</script>
<script>
function w3_open() {
document.getElementById("mySidebar").style.display = "block";
}
</script>
</html>