mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 05:18:00 +00:00
Compare commits
1 Commits
docs-5.2.x
...
docs-5.1.x
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
76b8b07f16 |
@@ -110,14 +110,17 @@ Then you can install Nominatim with:
|
|||||||
|
|
||||||
pip install nominatim-db nominatim-api
|
pip install nominatim-db nominatim-api
|
||||||
|
|
||||||
## Downloading and building Nominatim
|
## Downloading and building Nominatim from source
|
||||||
|
|
||||||
### Downloading the latest release
|
The following instructions are only relevant, if you want to build and
|
||||||
|
install Nominatim **from source**.
|
||||||
|
|
||||||
|
### Downloading the source for the latest release
|
||||||
|
|
||||||
You can download the [latest release from nominatim.org](https://nominatim.org/downloads/).
|
You can download the [latest release from nominatim.org](https://nominatim.org/downloads/).
|
||||||
The release contains all necessary files. Just unpack it.
|
The release contains all necessary files. Just unpack it.
|
||||||
|
|
||||||
### Downloading the latest development version
|
### Downloading the source for the latest development version
|
||||||
|
|
||||||
If you want to install latest development version from github:
|
If you want to install latest development version from github:
|
||||||
|
|
||||||
@@ -131,7 +134,7 @@ The development version does not include the country grid. Download it separatel
|
|||||||
wget -O Nominatim/data/country_osm_grid.sql.gz https://nominatim.org/data/country_grid.sql.gz
|
wget -O Nominatim/data/country_osm_grid.sql.gz https://nominatim.org/data/country_grid.sql.gz
|
||||||
```
|
```
|
||||||
|
|
||||||
### Building Nominatim
|
### Building Nominatim from source
|
||||||
|
|
||||||
Nominatim is easiest to run from its own virtual environment. To create one, run:
|
Nominatim is easiest to run from its own virtual environment. To create one, run:
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
site_name: Nominatim Manual
|
site_name: Nominatim 5.1.0 Manual
|
||||||
theme:
|
theme:
|
||||||
font: false
|
font: false
|
||||||
name: material
|
name: material
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ export DEBIAN_FRONTEND=noninteractive #DOCS:
|
|||||||
libbz2-dev libpq-dev liblua5.3-dev lua5.3 lua-dkjson \
|
libbz2-dev libpq-dev liblua5.3-dev lua5.3 lua-dkjson \
|
||||||
nlohmann-json3-dev postgresql-14-postgis-3 \
|
nlohmann-json3-dev postgresql-14-postgis-3 \
|
||||||
postgresql-contrib-14 postgresql-14-postgis-3-scripts \
|
postgresql-contrib-14 postgresql-14-postgis-3-scripts \
|
||||||
libicu-dev virtualenv git
|
libicu-dev virtualenv
|
||||||
|
|
||||||
#
|
#
|
||||||
# System Configuration
|
# System Configuration
|
||||||
@@ -97,22 +97,6 @@ fi #DOCS:
|
|||||||
# Building and Configuration
|
# Building and Configuration
|
||||||
# --------------------------
|
# --------------------------
|
||||||
#
|
#
|
||||||
# Get the source code from Github and change into the source directory
|
|
||||||
#
|
|
||||||
if [ "x$1" == "xyes" ]; then #DOCS: :::sh
|
|
||||||
cd $USERHOME
|
|
||||||
git clone https://github.com/osm-search/Nominatim.git
|
|
||||||
cd Nominatim
|
|
||||||
else #DOCS:
|
|
||||||
cd $USERHOME/Nominatim #DOCS:
|
|
||||||
fi #DOCS:
|
|
||||||
|
|
||||||
# When installing the latest source from github, you also need to
|
|
||||||
# download the country grid:
|
|
||||||
|
|
||||||
if [ ! -f data/country_osm_grid.sql.gz ]; then #DOCS: :::sh
|
|
||||||
wget -O data/country_osm_grid.sql.gz https://nominatim.org/data/country_grid.sql.gz
|
|
||||||
fi #DOCS:
|
|
||||||
|
|
||||||
# Nominatim needs osm2pgsql >= 1.8. The version that comes with Ubuntu is
|
# Nominatim needs osm2pgsql >= 1.8. The version that comes with Ubuntu is
|
||||||
# too old. Download and compile your own:
|
# too old. Download and compile your own:
|
||||||
@@ -124,7 +108,6 @@ fi #DOCS:
|
|||||||
cmake ../osm2pgsql
|
cmake ../osm2pgsql
|
||||||
make
|
make
|
||||||
sudo make install
|
sudo make install
|
||||||
cd $USERHOME/Nominatim
|
|
||||||
|
|
||||||
# Nominatim should be installed in a separate Python virtual environment.
|
# Nominatim should be installed in a separate Python virtual environment.
|
||||||
# Create the virtual environment:
|
# Create the virtual environment:
|
||||||
@@ -137,8 +120,7 @@ fi #DOCS:
|
|||||||
|
|
||||||
# Now install Nominatim using pip:
|
# Now install Nominatim using pip:
|
||||||
|
|
||||||
cd $USERHOME/Nominatim
|
$USERHOME/nominatim-venv/bin/pip install nominatim-db
|
||||||
$USERHOME/nominatim-venv/bin/pip install packaging/nominatim-db
|
|
||||||
|
|
||||||
# Nominatim is now ready to use. You can continue with
|
# Nominatim is now ready to use. You can continue with
|
||||||
# [importing a database from OSM data](../admin/Import.md). If you want to set up
|
# [importing a database from OSM data](../admin/Import.md). If you want to set up
|
||||||
@@ -154,9 +136,7 @@ fi #DOCS:
|
|||||||
# To install all packages, run:
|
# To install all packages, run:
|
||||||
|
|
||||||
#DOCS:```sh
|
#DOCS:```sh
|
||||||
$USERHOME/nominatim-venv/bin/pip install falcon uvicorn gunicorn
|
$USERHOME/nominatim-venv/bin/pip install falcon uvicorn gunicorn nominatim-api
|
||||||
cd $USERHOME/Nominatim
|
|
||||||
$USERHOME/nominatim-venv/bin/pip install packaging/nominatim-api
|
|
||||||
#DOCS:```
|
#DOCS:```
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ export DEBIAN_FRONTEND=noninteractive #DOCS:
|
|||||||
# Now you can install all packages needed for Nominatim:
|
# Now you can install all packages needed for Nominatim:
|
||||||
|
|
||||||
sudo apt-get install -y osm2pgsql postgresql-postgis postgresql-postgis-scripts \
|
sudo apt-get install -y osm2pgsql postgresql-postgis postgresql-postgis-scripts \
|
||||||
pkg-config libicu-dev virtualenv git
|
pkg-config libicu-dev virtualenv
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
@@ -94,23 +94,6 @@ fi #DOCS:
|
|||||||
# Building and Configuration
|
# Building and Configuration
|
||||||
# --------------------------
|
# --------------------------
|
||||||
#
|
#
|
||||||
# Get the source code from Github and change into the source directory
|
|
||||||
#
|
|
||||||
if [ "x$1" == "xyes" ]; then #DOCS: :::sh
|
|
||||||
cd $USERHOME
|
|
||||||
git clone https://github.com/osm-search/Nominatim.git
|
|
||||||
cd Nominatim
|
|
||||||
else #DOCS:
|
|
||||||
cd $USERHOME/Nominatim #DOCS:
|
|
||||||
fi #DOCS:
|
|
||||||
|
|
||||||
# When installing the latest source from github, you also need to
|
|
||||||
# download the country grid:
|
|
||||||
|
|
||||||
if [ ! -f data/country_osm_grid.sql.gz ]; then #DOCS: :::sh
|
|
||||||
wget -O data/country_osm_grid.sql.gz https://nominatim.org/data/country_grid.sql.gz
|
|
||||||
fi #DOCS:
|
|
||||||
|
|
||||||
# Nominatim should be installed in a separate Python virtual environment.
|
# Nominatim should be installed in a separate Python virtual environment.
|
||||||
# Create the virtual environment:
|
# Create the virtual environment:
|
||||||
|
|
||||||
@@ -122,8 +105,7 @@ fi #DOCS:
|
|||||||
|
|
||||||
# Now install Nominatim using pip:
|
# Now install Nominatim using pip:
|
||||||
|
|
||||||
cd $USERHOME/Nominatim
|
$USERHOME/nominatim-venv/bin/pip install nominatim-db
|
||||||
$USERHOME/nominatim-venv/bin/pip install packaging/nominatim-db
|
|
||||||
|
|
||||||
# Nominatim is now ready to use. The nominatim binary is available at
|
# Nominatim is now ready to use. The nominatim binary is available at
|
||||||
# `$USERHOME/venv/bin/nominatim`. If you want to have 'nominatim' in your
|
# `$USERHOME/venv/bin/nominatim`. If you want to have 'nominatim' in your
|
||||||
@@ -147,9 +129,7 @@ fi #DOCS:
|
|||||||
# To install all packages, run:
|
# To install all packages, run:
|
||||||
|
|
||||||
#DOCS:```sh
|
#DOCS:```sh
|
||||||
$USERHOME/nominatim-venv/bin/pip install falcon uvicorn gunicorn
|
$USERHOME/nominatim-venv/bin/pip install falcon uvicorn gunicorn nominatim-api
|
||||||
cd $USERHOME/Nominatim
|
|
||||||
$USERHOME/nominatim-venv/bin/pip install packaging/nominatim-api
|
|
||||||
#DOCS:```
|
#DOCS:```
|
||||||
|
|
||||||
# Next you need to create a systemd job that runs Nominatim on gunicorn.
|
# Next you need to create a systemd job that runs Nominatim on gunicorn.
|
||||||
|
|||||||
Reference in New Issue
Block a user