在Centos8上安裝Nomainatim時,都到了這一步:

但是最后cmake時候出現找不到PostgreSQL,但確實已經安裝了PostgreSQL,在網上找了許多方案都不行,有大佬有前車之鑒,能指點一下嗎?
非常感謝!!!!!!!!!
以下時是編譯的報錯資訊:
[nominatim@VM-0-5-centos /srv/nominatim/Nominatim/build]$cmake $USERHOME/Nominatim/
CMake Deprecation Warning at CMakeLists.txt:9 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- The C compiler identification is GNU 8.3.1
-- The CXX compiler identification is GNU 8.3.1
-- 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
-- Building osm2pgsql 1.4.0
-- Building in C++11 mode
-- Found Git: /usr/bin/git (found version "2.27.0")
-- Looking for include file termios.h
-- Looking for include file termios.h - found
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Found ZLIB: /usr/lib64/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 - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found Protozero: /srv/nominatim/Nominatim/osm2pgsql/contrib/protozero/include (found suitable version "1.7.0", minimum required is "1.6.3")
-- Found EXPAT: /usr/lib64/libexpat.so (found version "2.2.5")
-- Found BZip2: /usr/lib64/libbz2.so (found version "1.0.6")
-- Looking for BZ2_bzCompressInit
-- Looking for BZ2_bzCompressInit - found
-- Found Osmium: /srv/nominatim/Nominatim/osm2pgsql/contrib/libosmium/include (found suitable version "2.15.6", minimum required is "2.15.6")
-- Found Boost: /usr/include (found suitable version "1.66.0", minimum required is "1.50") found components: system filesystem
CMake Error at /usr/local/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:218 (message):
Could NOT find PostgreSQL (missing: PostgreSQL_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/local/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:582 (_FPHSA_FAILURE_MESSAGE)
/usr/local/share/cmake-3.19/Modules/FindPostgreSQL.cmake:247 (find_package_handle_standard_args)
osm2pgsql/CMakeLists.txt:198 (find_package)
-- Configuring incomplete, errors occurred!
See also "/srv/nominatim/Nominatim/build/CMakeFiles/CMakeOutput.log".
See also "/srv/nominatim/Nominatim/build/CMakeFiles/CMakeError.log".
uj5u.com熱心網友回復:
弄了還幾天了,在線等…急QAQ轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/251166.html
標籤:專題技術討論區
上一篇:VMware虛擬機重啟時報錯
