Skip to content

Compile Nominatim without cloning osm2pgsql cloned and without PHP installed #2191

Answered by lonvia
Yamakasi asked this question in Q&A
Discussion options

You must be logged in to vote

The cmake script defines various parameters to compile and install only parts of Nominatim:

BUILD_IMPORTER - Build everything for importing/updating the database
BUILD_API - Build everything for the API server
BUILD_MODULE - Build PostgreSQL module
BUILD_TESTS - Build test suite
BUILD_DOCS - Build documentation
BUILD_OSM2PGSQL - Build osm2pgsql

You can use those to switch off building parts of Nominatim. If you want to run the API on a different machine, you could switch off everything except BUILD_API. With -DBUILD_OSM2PGSQL=off the osm2pgsql submodule is not necessary. (Word of warning: these switches are rarely used and not well tested, so you might stumble over some bug you might wan…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@di-rect
Comment options

@Yamakasi
Comment options

Answer selected by Yamakasi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #2190 on March 02, 2021 02:57.