mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
increase minimum Postgresql to 9.5
The SQL code uses array_agg with arrays which is only supported for Postgresql 9.5. We could provide a workaround but given that 9.3/9.4 are not tested at all there is a good chance that there are other problems. See #2394.
This commit is contained in:
2
Vagrantfile
vendored
2
Vagrantfile
vendored
@@ -30,7 +30,7 @@ Vagrant.configure("2") do |config|
|
|||||||
lv.memory = 2048
|
lv.memory = 2048
|
||||||
lv.nested = true
|
lv.nested = true
|
||||||
if ENV['CHECKOUT'] != 'y' then
|
if ENV['CHECKOUT'] != 'y' then
|
||||||
override.vm.synced_folder ".", "/home/vagrant/Nominatim", type: 'nfs'
|
override.vm.synced_folder ".", "/home/vagrant/Nominatim", type: 'rsync'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ For compiling:
|
|||||||
|
|
||||||
For running Nominatim:
|
For running Nominatim:
|
||||||
|
|
||||||
* [PostgreSQL](https://www.postgresql.org) (9.3+ will work, 11+ strongly recommended)
|
* [PostgreSQL](https://www.postgresql.org) (9.5+ will work, 11+ strongly recommended)
|
||||||
* [PostGIS](https://postgis.net) (2.2+)
|
* [PostGIS](https://postgis.net) (2.2+)
|
||||||
* [Python 3](https://www.python.org/) (3.5+)
|
* [Python 3](https://www.python.org/) (3.5+)
|
||||||
* [Psycopg2](https://www.psycopg.org) (2.7+)
|
* [Psycopg2](https://www.psycopg.org) (2.7+)
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
sudo dnf -qy module disable postgresql
|
sudo dnf -qy module disable postgresql
|
||||||
sudo dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm
|
sudo dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm
|
||||||
|
export PATH=/usr/pgsql-12/bin/:$PATH
|
||||||
|
|
||||||
# Now you can install all packages needed for Nominatim:
|
# Now you can install all packages needed for Nominatim:
|
||||||
|
|
||||||
@@ -33,9 +34,9 @@
|
|||||||
php-pgsql php php-intl php-json libpq-devel \
|
php-pgsql php php-intl php-json libpq-devel \
|
||||||
bzip2-devel proj-devel boost-devel \
|
bzip2-devel proj-devel boost-devel \
|
||||||
python3-pip python3-setuptools python3-devel \
|
python3-pip python3-setuptools python3-devel \
|
||||||
expat-devel zlib-devel libicu-dev
|
expat-devel zlib-devel libicu-devel
|
||||||
|
|
||||||
pip3 install --user psycopg2 python-dotenv psutil Jinja2 PyICU
|
pip3 install --user psycopg2-binary python-dotenv psutil Jinja2 PyICU
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
@@ -113,8 +114,6 @@ if [ "x$1" == "xyes" ]; then #DOCS: :::sh
|
|||||||
cd $USERHOME
|
cd $USERHOME
|
||||||
wget https://nominatim.org/release/Nominatim-3.7.2.tar.bz2
|
wget https://nominatim.org/release/Nominatim-3.7.2.tar.bz2
|
||||||
tar xf Nominatim-3.7.2.tar.bz2
|
tar xf Nominatim-3.7.2.tar.bz2
|
||||||
else #DOCS:
|
|
||||||
cd $USERHOME/Nominatim #DOCS:
|
|
||||||
fi #DOCS:
|
fi #DOCS:
|
||||||
|
|
||||||
# The code must be built in a separate directory. Create this directory,
|
# The code must be built in a separate directory. Create this directory,
|
||||||
@@ -123,7 +122,11 @@ fi #DOCS:
|
|||||||
#DOCS: :::sh
|
#DOCS: :::sh
|
||||||
mkdir $USERHOME/build
|
mkdir $USERHOME/build
|
||||||
cd $USERHOME/build
|
cd $USERHOME/build
|
||||||
|
if [ "x$1" == "xyes" ]; then #DOCS:
|
||||||
cmake $USERHOME/Nominatim-3.7.2
|
cmake $USERHOME/Nominatim-3.7.2
|
||||||
|
else #DOCS:
|
||||||
|
cmake /home/vagrant/Nominatim
|
||||||
|
fi #DOCS:
|
||||||
make
|
make
|
||||||
sudo make install
|
sudo make install
|
||||||
|
|
||||||
@@ -172,10 +175,10 @@ sudo sed -i 's:#.*::' /etc/httpd/conf.d/nominatim.conf #DOCS:
|
|||||||
# with a web server accessible from the Internet. At a minimum the
|
# with a web server accessible from the Internet. At a minimum the
|
||||||
# following SELinux labeling should be done for Nominatim:
|
# following SELinux labeling should be done for Nominatim:
|
||||||
|
|
||||||
sudo semanage fcontext -a -t httpd_sys_content_t "/usr/local/nominatim/lib/lib-php(/.*)?"
|
sudo semanage fcontext -a -t httpd_sys_content_t "/usr/local/lib/nominatim/lib-php(/.*)?"
|
||||||
sudo semanage fcontext -a -t httpd_sys_content_t "$USERHOME/nominatim-project/website(/.*)?"
|
sudo semanage fcontext -a -t httpd_sys_content_t "$USERHOME/nominatim-project/website(/.*)?"
|
||||||
sudo semanage fcontext -a -t lib_t "$USERHOME/nominatim-project/module/nominatim.so"
|
sudo semanage fcontext -a -t lib_t "$USERHOME/nominatim-project/module/nominatim.so"
|
||||||
sudo restorecon -R -v /usr/local/lib/nominatim
|
sudo restorecon -R -v /usr/local/lib64/nominatim
|
||||||
sudo restorecon -R -v $USERHOME/nominatim-project
|
sudo restorecon -R -v $USERHOME/nominatim-project
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user