Commit 2b9d8cc2 authored by Monnier Milo's avatar Monnier Milo
Browse files

Add osrm builder

parent 0f50290d
No related merge requests found
Showing with 38 additions and 0 deletions
+38 -0
# Build OSRM
sudo apt update
sudo apt install -y git cmake build-essential jq liblua5.2-dev libboost-all-dev libprotobuf-dev libtbb-dev libstxxl-dev libbz2-dev cmake
# No problem on Debian stretch. But libboost problem on Ubuntu16.04
# --> Use aptitude to downgrade libboost packages
# To use in R
sudo apt install -y libcurl4-openssl-dev libgeos-dev
mkdir -p ~/Applications
cd ~/Applications
git clone https://github.com/Project-OSRM/osrm-backend.git
cd osrm-backend/
mkdir build
cd build/
cmake ..
# Make it. Long ... use multiprocessing
make -j$(nproc)
sudo make install
cd ~/Applications/osrm-backend
# Create a swapfile
fallocate -l 100G swapfile
chmod 600 swapfile
mkswap swapfile
sudo swapon swapfile
# download OSM road network data and extract it
file='france-latest'
wget -nc http://download.geofabrik.de/europe/${file}.osm.pbf
osrm-extract ${file}.osm.pbf -p profiles/car.lua
osrm-contract ${file}.osrm
# Check if server if running
osrm-routed ${file}.osrm
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment