forked from valhalla/valhalla
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Ubuntu_Bionic_Install.sh
59 lines (37 loc) · 1.51 KB
/
Ubuntu_Bionic_Install.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
#!/bin/bash
sudo apt update
sudo apt upgrade -y
sudo apt install -y mc
sudo apt install -y cmake make libtool pkg-config g++ gcc jq lcov protobuf-compiler vim-common libboost-all-dev libboost-all-dev libcurl4-openssl-dev zlib1g-dev liblz4-dev libprotobuf-dev
# if you plan to compile with data building support, see below for more info
sudo apt install -y libgeos-dev libgeos++-dev libluajit-5.1-dev libspatialite-dev libsqlite3-dev spatialite-bin luajit wget
if [[ $(grep -cF bionic /etc/lsb-release) > 0 ]]; then sudo apt install -y libsqlite3-mod-spatialite; fi
# if you plan to compile with python bindings, see below for more info
sudo apt install -y python-all-dev
cd $HOME
git clone https://github.com/valhalla/valhalla.git
cd $HOME/valhalla
# Clone and build prime_server
cd $HOME
git clone https://github.com/kevinkreiser/prime_server.git
# grab some standard autotools stuff
sudo apt install -y autoconf automake libtool make gcc g++ lcov
# grab curl (for url de/encode) and zmq for the awesomeness
sudo apt install -y libcurl4-openssl-dev libzmq3-dev libczmq-dev
cd $HOME/prime_server
# dont forget submodules
git submodule update --init --recursive
# standard autotools:
./autogen.sh
./configure
make test -j8
sudo make install
echo -e "\nexport LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/" >> /etc/profile
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/
cd $HOME/valhalla
git submodule update --init --recursive
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j$(nproc)
sudo make install