【问题标题】:installing nominatim on CentOS 8: could not file postgresql (missing: postgresql_library postgresql_include_dir)在 CentOS 8 上安装 nominatim:无法归档 postgresql(缺少:postgresql_library postgresql_include_dir)
【发布时间】:2020-07-16 17:18:02
【问题描述】:

我在 CentOS8 系统上安装 nominatim,但在安装 nominatim 时出现错误

cmake $USERHOME/Nominatim-3.5.1

喜欢这个

-- 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)

/usr/pqsql-12/bin 的路径在 .bach_profile 中设置并被加载。 PostgreSQL 和 PostgreSQL-devel 已安装。

我能做些什么来解决这个问题。我不是 Linux 高级用户,需要帮助。

谢谢

【问题讨论】:

    标签: linux postgresql installation nominatim


    【解决方案1】:

    使用 cmake3 代替 cmake

    你必须通过

    安装cmake3
    yum install cmake3
    

    【讨论】:

      【解决方案2】:

      我发现如果我编辑了文件

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

      并在此版本列表中添加了“12”...

      PostgreSQL_KNOWN_VERSIONS
      

      .. 然后 cmake 工作了。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2017-09-30
        • 2022-01-08
        • 2020-06-25
        • 1970-01-01
        • 2018-11-07
        • 2021-08-14
        • 2020-06-17
        相关资源
        最近更新 更多