AcuGIS / Nominatim-Server

Script for Building a Basic Nominatim Server
https://www.acugis.com/opennamesearch/
17 stars 9 forks source link

install error #14

Closed ivenspontes closed 1 year ago

ivenspontes commented 1 year ago
user@server:/home/ubuntu/nominatim#` ./Nominatim-Server.sh  https://download.geofabrik.de/south-america/brazil-latest.osm.pbf
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'postgresql-14' instead of 'postgresql-contrib-14'
build-essential is already the newest version (12.9ubuntu3).
g++ is already the newest version (4:11.2.0-1ubuntu1).
libapache2-mod-php is already the newest version (2:8.1+92ubuntu1).
libboost-dev is already the newest version (1.74.0.3ubuntu7).
libboost-filesystem-dev is already the newest version (1.74.0.3ubuntu7).
libboost-system-dev is already the newest version (1.74.0.3ubuntu7).
libbz2-dev is already the newest version (1.0.8-5build1).
libicu-dev is already the newest version (70.1-2).
liblua5.3-dev is already the newest version (5.3.6-1build1).
php is already the newest version (2:8.1+92ubuntu1).
php-cgi is already the newest version (2:8.1+92ubuntu1).
php-cli is already the newest version (2:8.1+92ubuntu1).
php-pear is already the newest version (1:1.10.12+submodules+notgz+20210212-1ubuntu3).
php-pgsql is already the newest version (2:8.1+92ubuntu1).
python3-icu is already the newest version (2.8.1-0ubuntu2).
python3-jinja2 is already the newest version (3.0.3-1).
python3-psutil is already the newest version (5.9.0-1build1).
python3-psycopg2 is already the newest version (2.9.2-1build2).
libboost-python-dev is already the newest version (1.74.0.3ubuntu7).
libgeos++-dev is already the newest version (3.10.2-1).
libgeos-dev is already the newest version (3.10.2-1).
libproj-dev is already the newest version (8.2.1-1).
lua5.3 is already the newest version (5.3.6-1build1).
osmosis is already the newest version (0.48.3-1).
php-db is already the newest version (1.10.0-1build4).
php-intl is already the newest version (2:8.1+92ubuntu1).
postgresql-14-postgis-3 is already the newest version (3.2.0+dfsg-1ubuntu1).
python-pip is already the newest version (20.3.4+dfsg-4).
python3-datrie is already the newest version (0.8.2-1build4).
python3-dotenv is already the newest version (0.19.2-1).
python3-pyosmium is already the newest version (3.2.0-1build1).
apache2 is already the newest version (2.4.52-1ubuntu4.6).
cmake is already the newest version (3.22.1-1ubuntu1.22.04.1).
git is already the newest version (1:2.34.1-1ubuntu1.10).
libexpat1-dev is already the newest version (2.4.7-1ubuntu0.2).
libpq-dev is already the newest version (14.9-0ubuntu0.22.04.1).
libxml2-dev is already the newest version (2.9.13+dfsg-1ubuntu0.3).
postgresql-14 is already the newest version (14.9-0ubuntu0.22.04.1).
zlib1g-dev is already the newest version (1:1.2.11.dfsg-2ubuntu9.2).
postgresql-server-dev-14 is already the newest version (14.9-0ubuntu0.22.04.1).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'postgresql-14' instead of 'postgresql-contrib-14'
postgis is already the newest version (3.2.0+dfsg-1ubuntu1).
postgresql-14-postgis-3 is already the newest version (3.2.0+dfsg-1ubuntu1).
postgresql-14 is already the newest version (14.9-0ubuntu0.22.04.1).
postgresql-client-14 is already the newest version (14.9-0ubuntu0.22.04.1).
postgresql-server-dev-14 is already the newest version (14.9-0ubuntu0.22.04.1).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
/home/ntim /home/ubuntu/nominatim
Cloning into 'Nominatim'...
remote: Enumerating objects: 31646, done.
remote: Counting objects: 100% (2020/2020), done.
remote: Compressing objects: 100% (644/644), done.
remote: Total 31646 (delta 1448), reused 1874 (delta 1366), pack-reused 29626
Receiving objects: 100% (31646/31646), 156.67 MiB | 27.12 MiB/s, done.
Resolving deltas: 100% (20108/20108), done.
Submodule 'osm2pgsql' (https://github.com/openstreetmap/osm2pgsql.git) registered for path 'osm2pgsql'
Cloning into '/home/ntim/Nominatim/osm2pgsql'...
remote: Enumerating objects: 24426, done.        
remote: Counting objects: 100% (2894/2894), done.        
remote: Compressing objects: 100% (905/905), done.        
remote: Total 24426 (delta 1954), reused 2796 (delta 1950), pack-reused 21532        
Receiving objects: 100% (24426/24426), 50.98 MiB | 22.27 MiB/s, done.
Resolving deltas: 100% (17760/17760), done.
Submodule path 'osm2pgsql': checked out 'ea0178e97d5b69a87a8b9c35210c8be4674e60e6'
/home/ntim/Nominatim /home/ntim /home/ubuntu/nominatim
M       osm2pgsql
Note: switching to 'v4.2.3'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 1187d0ab prepare 4.2.3 release
--2023-09-04 21:11:44--  https://www.nominatim.org/data/country_grid.sql.gz
Resolving www.nominatim.org (www.nominatim.org)... 138.201.190.130
Connecting to www.nominatim.org (www.nominatim.org)|138.201.190.130|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://nominatim.org/data/country_grid.sql.gz [following]
--2023-09-04 21:11:46--  https://nominatim.org/data/country_grid.sql.gz
Resolving nominatim.org (nominatim.org)... 138.201.190.130
Connecting to nominatim.org (nominatim.org)|138.201.190.130|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 42146983 (40M) [application/octet-stream]
Saving to: ‘data/country_osm_grid.sql.gz’

data/country_osm_grid.sql.gz                          100%[======================================================================================================================>]  40.19M  4.15MB/s    in 14s     

2023-09-04 21:12:02 (2.79 MB/s) - ‘data/country_osm_grid.sql.gz’ saved [42146983/42146983]

/home/ntim/Nominatim/build /home/ntim/Nominatim /home/ntim /home/ubuntu/nominatim
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/bin/git (found version "2.34.1") 
-- Building osm2pgsql 1.9.1
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11") 
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Found Protozero: /home/ntim/Nominatim/osm2pgsql/contrib/protozero/include (found suitable version "1.7.1", minimum required is "1.6.3") 
-- Found EXPAT: /usr/lib/x86_64-linux-gnu/libexpat.so (found version "2.4.7") 
-- Found BZip2: /usr/lib/x86_64-linux-gnu/libbz2.so (found version "1.0.8") 
-- Looking for BZ2_bzCompressInit
-- Looking for BZ2_bzCompressInit - found
-- Found Osmium: /home/ntim/Nominatim/osm2pgsql/contrib/libosmium/include (found suitable version "2.19.0", minimum required is "2.17.3") 
-- Building with Lua support
-- Found Lua: /usr/lib/x86_64-linux-gnu/liblua5.3.so;/usr/lib/x86_64-linux-gnu/libm.so (found version "5.3.6") 
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found suitable version "1.74.0", minimum required is "1.50") found components: system filesystem 
-- Found PostgreSQL: /usr/lib/x86_64-linux-gnu/libpq.so (found version "14.9")  
-- Found Proj [API 6] /usr/lib/x86_64-linux-gnu/libproj.so
-- Libraries used to build: Boost::system;Boost::filesystem;/usr/lib/x86_64-linux-gnu/libpq.so;/usr/lib/x86_64-linux-gnu/libz.so;/usr/lib/x86_64-linux-gnu/libexpat.so;/usr/lib/x86_64-linux-gnu/libbz2.so;/usr/lib/x86_64-linux-gnu/libproj.so;/usr/lib/x86_64-linux-gnu/liblua5.3.so;/usr/lib/x86_64-linux-gnu/libm.so
-- Did not find cimg and/or potrace library. Not building osm2pgsql-gen.
-- Looking for clang-tidy
-- Looking for clang-tidy - found /usr/bin/clang-tidy
-- Tests disabled. Set BUILD_TESTS=ON to enable tests.
-- Looking for pandoc
-- Looking for argparse-manpage
-- Looking for pandoc - found
--   osm2pgsql manual page can be built using 'man' target
-- Looking for argparse-manpage - not found
--   osm2pgsql-replication page can not be built
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.10.12", minimum required is "3.6") 
-- Using PHP binary /usr/bin/php
-- Using php-cgi binary /usr/bin/php-cgi
CMake Warning at CMakeLists.txt:152 (message):
  behave not found.  BDD tests disabled.

-- Using phpunit binary /usr/bin/phpunit
CMake Warning at CMakeLists.txt:170 (message):
  phpcs not found.  PHP linting tests disabled.

-- Using pylint binary /usr/bin/pylint
-- Using pytest binary /usr/bin/py.test-3
-- Configuring done
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
NLOHMANN_INCLUDE_DIR
   used as include directory in directory /home/ntim/Nominatim/osm2pgsql
   used as include directory in directory /home/ntim/Nominatim/osm2pgsql
   used as include directory in directory /home/ntim/Nominatim/osm2pgsql
   used as include directory in directory /home/ntim/Nominatim/osm2pgsql
   used as include directory in directory /home/ntim/Nominatim/osm2pgsql
   used as include directory in directory /home/ntim/Nominatim/osm2pgsql
   used as include directory in directory /home/ntim/Nominatim/osm2pgsql
   used as include directory in directory /home/ntim/Nominatim/osm2pgsql
   used as include directory in directory /home/ntim/Nominatim/osm2pgsql
   used as include directory in directory /home/ntim/Nominatim/osm2pgsql/src
   used as include directory in directory /home/ntim/Nominatim/osm2pgsql/src
   used as include directory in directory /home/ntim/Nominatim/osm2pgsql/src
   used as include directory in directory /home/ntim/Nominatim/osm2pgsql/src
   used as include directory in directory /home/ntim/Nominatim/osm2pgsql/src
   used as include directory in directory /home/ntim/Nominatim/osm2pgsql/src
   used as include directory in directory /home/ntim/Nominatim/osm2pgsql/src
   used as include directory in directory /home/ntim/Nominatim/osm2pgsql/src
   used as include directory in directory /home/ntim/Nominatim/osm2pgsql/docs
   used as include directory in directory /home/ntim/Nominatim/osm2pgsql/docs
   used as include directory in directory /home/ntim/Nominatim/osm2pgsql/docs
   used as include directory in directory /home/ntim/Nominatim/osm2pgsql/docs
   used as include directory in directory /home/ntim/Nominatim/osm2pgsql/docs
   used as include directory in directory /home/ntim/Nominatim/osm2pgsql/docs
   used as include directory in directory /home/ntim/Nominatim/osm2pgsql/docs
   used as include directory in directory /home/ntim/Nominatim/osm2pgsql/docs

CMake Error in osm2pgsql/CMakeLists.txt:
  Found relative path while evaluating include directories of "osm2pgsql":

    "NLOHMANN_INCLUDE_DIR-NOTFOUND"

CMake Error in osm2pgsql/src/CMakeLists.txt:
  Found relative path while evaluating include directories of
  "osm2pgsql_lib":

    "NLOHMANN_INCLUDE_DIR-NOTFOUND"

-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.
DavidGhedini commented 1 year ago

What is the OS?

ivenspontes commented 1 year ago

What is the OS?

Ubuntu 22.04

kaloyan13 commented 1 year ago

73db5f14f7060a826948b4fbc5338b840f86a0fe fixes this.

ivenspontes commented 1 year ago

73db5f1 fixes this.

Working now!

Thank you!