Skip to content

Instantly share code, notes, and snippets.

@nicolasramy
Last active August 10, 2021 15:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicolasramy/759c4ff012794368ef85 to your computer and use it in GitHub Desktop.
Save nicolasramy/759c4ff012794368ef85 to your computer and use it in GitHub Desktop.
Open Street Map installation guide

reference: http://wiki.openstreetmap.org/wiki/Nominatim/Installation

Prerequisites

Ubuntu/Debian

apt-get install build-essential libxml2-dev libgeos-dev libpq-dev libbz2-dev libtool automake libproj-dev
apt-get install libboost-dev libboost-system-dev libboost-filesystem-dev libboost-thread-dev
apt-get install gcc proj-bin libgeos-c1 osmosis libgeos++-dev
apt-get install php5 php-pear php5-pgsql php5-json php-db
apt-get install postgresql postgis postgresql-contrib postgresql-9.3-postgis-2.1 postgresql-server-dev-9.3
apt-get install libprotobuf-c0-dev protobuf-c-compiler

First installation

Obtaining 2.4.0 (stable release)

wget http://www.nominatim.org/release/Nominatim-2.4.0.tar.bz2
tar xvf Nominatim-2.4.0.tar.bz2

Compiling sources

cd Nominatim
./configure
make

Creating postgres accounts

createuser -SDR www-data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment