forked from valhalla/valhalla
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-linux-deps.sh
executable file
·64 lines (60 loc) · 1.53 KB
/
install-linux-deps.sh
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
#!/usr/bin/env bash
# Script for shared dependencies
set -x -o errexit -o pipefail -o nounset
# Now, go through and install the build dependencies
sudo apt-get update --assume-yes
env DEBIAN_FRONTEND=noninteractive sudo apt install --yes --quiet \
autoconf \
automake \
ccache \
clang \
clang-tidy \
coreutils \
curl \
cmake \
g++ \
gcc \
git \
jq \
lcov \
libcurl4-openssl-dev \
libczmq-dev \
libgeos++-dev \
libgeos-dev \
libluajit-5.1-dev \
liblz4-dev \
libprotobuf-dev \
libspatialite-dev \
libsqlite3-dev \
libsqlite3-mod-spatialite \
libtool \
libzmq3-dev \
lld \
locales \
luajit \
make \
osmium-tool \
parallel \
pkg-config \
protobuf-compiler \
python3-all-dev \
python3-shapely \
python3-pip \
spatialite-bin \
unzip \
zlib1g-dev
# build prime_server from source
# readonly primeserver_version=0.7.0
readonly primeserver_dir=/tmp/prime_server
git clone --recurse-submodules https://github.com/kevinkreiser/prime_server $primeserver_dir
pushd $primeserver_dir
./autogen.sh && ./configure
make -j${CONCURRENCY:-$(nproc)}
sudo make install
popd && rm -rf $primeserver_dir
# for boost and scripts deps
if [[ $(python3 -c 'import sys; print(int(sys.base_prefix != sys.prefix or hasattr(sys, "real_p refix")))') -eq 1 ]]; then
python3 -m pip install --upgrade "conan<2.0.0" requests shapely
else
sudo PIP_BREAK_SYSTEM_PACKAGES=1 python3 -m pip install --upgrade "conan<2.0.0" requests shapely
fi