【发布时间】: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/lib在LD_LIBRARY_PATH环境变量中,我还将/usr/local/pgsql/lib添加到LD_LIBRARY_PATH
这些解决方案均无效。我无法使用 yum 安装 PostGIS 或 Geos,因为它会安装与我的 postgresql 版本冲突的 postgresql 12,后者是 Postgres-XL 的自定义版本。
还有什么我可以尝试解决这个错误的吗?任何帮助表示赞赏。
谢谢。
【问题讨论】:
标签: postgis geos postgres-xl