skip to Main Content

I installing nominatim on a CentOS8-System and i get an error at installing nominatim

cmake $USERHOME/Nominatim-3.5.1

like this

-- Building osm2pgsql 1.2.0
-- Building in C++11 mode
-- Boost version: 1.66.0
-- Found the following Boost libraries:
--   system
--   filesystem
CMake Error et /usr/shar/cmake/Modules/FindPackageHandleStandardApps.cmake:137 (message):
  Could NOT find PostgreSQL (mitting: PostgreSQL_LIBRARY
  PostgreSQL_INCLUDE_DIR)

The path to /usr/pqsql-12/bin is set in then .bach_profile and is loaded.
PostgreSQL and PostgreSQL-devel is installed.

What can i do to solve this problem. I’m not a Linux-Poweruser an need help.

Thanks

2

Answers


  1. I found if I edited the file

    /usr/share/cmake/Modules/FindPostgreSQL.cmake
    

    and added "12" to this list of versions here …

    PostgreSQL_KNOWN_VERSIONS
    

    .. then cmake worked.

    Login or Signup to reply.
  2. use cmake3 instead cmake

    you have to install cmake3 by

    yum install cmake3
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search