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