Skip to content
Dennis Luxen edited this page Mar 25, 2026 · 30 revisions

This page describes building OSRM on Ubuntu using the system's apt package manager.

Ubuntu 24.04

sudo apt install -y build-essential git cmake pkg-config \
  gcc g++ libbz2-dev libstxxl-dev libstxxl1v5 libxml2-dev \
  libzip-dev libboost-all-dev lua5.2 liblua5.2-dev libtbb-dev

# When compiling
cmake # ...

Earlier Ubuntu versions

You're pretty much on your own here: you need to update CMake, your compiler and have to compile every C++ dependency locally against your new compiler yourself. It's possible for sure; if you really need to do this and need help open a ticket or ping us on IRC.

Clone this wiki locally