【问题标题】:How to install PostGIS into Postgres-XL correctly?如何将 PostGIS 正确安装到 Postgres-XL 中?
【发布时间】:2021-03-29 18:22:16
【问题描述】:

我在我的 Amazon Linux 2 机器上安装了带有 geos-3.9.1 和 postgis-3.1.1 的 Postgres-XL 10。我的集群运行正常,但我无法将 postgis 安装到数据库中。我已经从源代码构建并安装了所有内容。

我在运行CREATE EXTENSION postgis; 时遇到的错误是:

ERROR:  could not load library "/usr/local/pgsql/lib/postgis-3.so": libgeos_c.so.1: cannot open shared object file: No such file or directory

使用其他在线帖子的解决方案,我已经尝试过:

  • 正在运行sudo ldconfig
  • 在安装 geos 和 postgis 时使用 --enable-shared 选项
  • 确保/usr/local/libLD_LIBRARY_PATH 环境变量中,我还将/usr/local/pgsql/lib 添加到LD_LIBRARY_PATH

这些解决方案均无效。我无法使用 yum 安装 PostGIS 或 Geos,因为它会安装与我的 postgresql 版本冲突的 postgresql 12,后者是 Postgres-XL 的自定义版本。

还有什么我可以尝试解决这个错误的吗?任何帮助表示赞赏。

谢谢。

【问题讨论】:

    标签: postgis geos postgres-xl


    【解决方案1】:

    看来您可能需要降级。 Postgres-XL 目前只支持 2.0.x 版本的 postgis。至少根据他们的文档。

    https://www.postgres-xl.org/faq/

    Q. Is PostGIS supported?
    Yes, PostGIS can be added to Postgres-XL. It has been tested with PostGIS 2.0.
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-04-15
      • 1970-01-01
      • 2017-05-30
      • 1970-01-01
      • 1970-01-01
      • 2016-03-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多