/[projects]/misc/osrm-scripts/start-osrm.sh
ViewVC logotype

Annotation of /misc/osrm-scripts/start-osrm.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3166 - (hide annotations) (download) (as text)
Wed Dec 14 13:26:40 2016 UTC (7 years, 5 months ago) by torben
File MIME type: application/x-sh
File size: 1012 byte(s)
add osrm scripts for reference
1 torben 3166 #!/bin/bash
2    
3    
4     DATADIR=/mnt/qnap/openstreetmap
5    
6     if [ ! -f /usr/local/bin/osrm-extract ] ; then
7     apt-get install build-essential git cmake pkg-config libprotoc-dev protobuf-compiler libprotobuf-dev libosmpbf-dev libpng12-dev libbz2-dev libstxxl-dev libstxxl-doc libstxxl1
8     apt-get install libxml2-dev libzip-dev libboost-all-dev lua5.1 liblua5.1-0-dev libluabind-dev libtbb-dev
9    
10    
11     cd /root
12    
13     git clone https://github.com/Project-OSRM/osrm-backend.git
14     cd osrm-backend
15     mkdir -p build
16     cd build
17    
18     cmake ..
19     make -j 2
20     make install
21     fi
22    
23    
24     ##########################################
25    
26    
27     cd $DATADIR
28    
29     if [ ! -f denmark-latest.osm ] ; then
30     wget http://download.geofabrik.de/europe/denmark-latest.osm.bz2
31     bunzip2 denmark-latest.osm.bz2
32     fi
33    
34    
35     cd /root/osrm-backend
36    
37     if [ ! -f $DATADIR/denmark-latest.osrm ] ; then
38     osrm-extract $DATADIR/denmark-latest.osm
39     fi
40    
41     if [ ! -f $DATADIR/denmark-latest.osrm.edges ] ; then
42     osrm-prepare $DATADIR/denmark-latest.osrm
43     fi
44    
45     cd $DATADIR
46    
47     osrm-routed denmark-latest.osrm

  ViewVC Help
Powered by ViewVC 1.1.20