尝试在 Centos 6.9 上安装 postgis 并且缺少依赖项 libgeotiff.so.2

尝试在 Centos 6.9 上安装 postgis 并且缺少依赖项 libgeotiff.so.2

我正在尝试在 Centos 6.9 (和 postgresql 9.5) 上安装 Postgis 2.1。我尝试使用 yum 安装它:

yum install postgis21_95

并得到错误:

> Finished Dependency Resolution
Error: Package: gdal-libs-1.9.2-8.rhel6.x86_64 (pgdg-common)
           Requires: libgeotiff.so.2()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

我已经安装了包:“libgeotiff.x86_64 1.2.5-6.el6”,但它似乎不是正确的。

我在 Linux 上安装软件包的经验很少。我在网上搜索了一些,但没有找到答案。

  1. 我该怎么做才能正确安装它?

或者: 2. 如果我不需要 postgis 的 geotiff 功能,我可以使用“--skip-broken”安全地跳过这一步吗?

答案1

来自的附加包电力供应处6(企业 Linux 的额外软件包)需要满足 GDAL 的要求。(因此启用 epel)

然而,你不是在 2021 年的 CentOS 6 安装中解决这个安装难题,而是真的应该考虑升级操作系统。

生活有时很奇怪:如果有原因导致升级操作系统不可行,更改存储库源以使用存档版本,截至 2020 年底,所有源都已从镜像服务器中删除,以反映 CentOS6 的生命周期终止 (EOL) 状态。

相关内容