嘗試在 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

附加包來自EPEL需要 6(企業 Linux 的額外軟體包)才能滿足 GDAL 的要求。 (所以啟用 epel)

然而,您不是在 2021 年解決 CentOS 6 安裝上的這項安裝挑戰,而是真的應考慮升級作業系統。

生活有時很奇怪:如果出於某種原因無法升級作業系統,更改儲存庫來源以使用存檔版本,到 2020 年底,所有來源都已從鏡像伺服器中刪除,以反映 CentOS6 的生命週期終止 (EOL) 狀態。

相關內容