Skip to content
Daniel J. H. edited this page Jul 7, 2015 · 27 revisions

Ubuntu 15.04

sudo apt-get install build-essential git cmake pkg-config libprotoc-dev libprotobuf9 \
protobuf-compiler libprotobuf-dev libosmpbf-dev libpng12-dev \
libbz2-dev libstxxl-dev libstxxl1 libxml2-dev \
libzip-dev libboost-all-dev lua5.1 liblua5.1-0-dev libluabind-dev libluajit-5.1-dev libtbb-dev

Ubuntu 14.04+

sudo apt-get install build-essential git cmake pkg-config libprotoc-dev libprotobuf8 \
protobuf-compiler libprotobuf-dev libosmpbf-dev libpng12-dev \
libbz2-dev libstxxl-dev libstxxl-doc libstxxl1 libxml2-dev \
libzip-dev libboost-all-dev lua5.1 liblua5.1-0-dev libluabind-dev libluajit-5.1-dev libtbb-dev

Ubuntu 12.04+

On Ubuntu 12.04 LTS you may run into this issue: https://github.com/DennisOSRM/Project-OSRM/issues/465

On Ubuntu 12.04 you will be limited to OSRM tag v0.3.10 because later versions require Boost v1.49+ and installing this causes problems with libluabind-dev package.

sudo apt-get install build-essential git cmake pkg-config libprotoc-dev libprotobuf7 \
protobuf-compiler libprotobuf-dev libosmpbf-dev libpng12-dev \
libbz2-dev libstxxl-dev libstxxl-doc libstxxl1 libxml2-dev \
libzip-dev libboost-all-dev lua5.1 liblua5.1-0-dev libluabind-dev libluajit-5.1-dev libtbb-dev

To be able to run cucumber tests, run these as well:

sudo apt-get install rubygems osmosis
sudo gem install bundler
bundle install  #must be run from the OSRM root folder

Ubuntu 11.10

sudo apt-get install build-essential git cmake libprotoc-dev libprotobuf7 \
protobuf-compiler libprotobuf-dev libpng-dev libbz2-dev libstxxl-dev libstxxl-doc \
libstxxl1 libxml2-dev libzip-dev libboost-thread-dev libboost-system-dev \
libboost-regex-dev libboost-filesystem-dev libluabind-dev

You also need libosmpbf-dev package, but this package is not available on ubuntu 11.10. It exist only on 12.04 and higher. You can install in manually by downloading the .deb file from http://pkgs.org/download/libosmpbf-dev, and install it by running sudo dpkg -i libosmpbf-dev*.deb