为什么在RHEL 8/CentOS 8上安装PostGIS 3是不可能的? [英] Why is installing PostGIS 3 on RHEL 8 / CentOS 8 impossible?
问题描述
我正在尝试在CentOS 8上安装最新的PostGIS 3.0.x,但没有成功。
我认为没有人在RHEL 8或CentOS 8上运行PostGIS,我不明白为什么不能。似乎无法安装。
我已通过禁用RHEL AppStream成功安装了Postgres 12.0
在CentOS 8上安装Postgres 12的步骤:
1)
#dnf install https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm
2)
#dnf --disablerepo AppStream install postgresql12
#dnf --disablerepo AppStream install postgresql12-server
我现在正在尝试安装PostGIS。
#dnf list --available | grep postgis30
我看到postgis30_96是最新的报价(如下所示):
postgis30_96.x86_64 3.0.0alpha4-6.rhel8 pgdg96
postgis30_96-client.x86_64 3.0.0alpha4-6.rhel8 pgdg96
postgis30_96-client-debuginfo.x86_64 3.0.0alpha4-6.rhel8 pgdg96
postgis30_96-debuginfo.x86_64 3.0.0alpha4-6.rhel8 pgdg96
postgis30_96-devel.x86_64 3.0.0alpha4-6.rhel8 pgdg96
postgis30_96-docs.x86_64 3.0.0alpha4-6.rhel8 pgdg96
postgis30_96-gui.x86_64 3.0.0alpha4-6.rhel8 pgdg96
postgis30_96-gui-debuginfo.x86_64 3.0.0alpha4-6.rhel8 pgdg96
postgis30_96-utils.x86_64 3.0.0alpha4-6.rhel8 pgdg96
当我尝试使用以下命令安装时:
#dnf install postgis30_96
我收到以下错误:
Last metadata expiration check: 1:22:58 ago on Tue 15 Oct 2019 08:25:10 PM UTC.
Error:
Problem: cannot install the best candidate for the job
- nothing provides hdf5 needed by postgis30_96-3.0.0alpha4-6.rhel8.x86_64
- nothing provides xerces-c needed by postgis30_96-3.0.0alpha4-6.rhel8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
我查找了xerces-c,没有返回任何内容:
#dnf list --available | grep xerces-c
在哪里可以安装xerces-c?
我查看hdf5是否可用于安装(依赖项)
#dnf list --available | grep hdf5
,则不返回任何内容。如何满足这些依赖关系,以便安装PostGIS?
我去了hdf5网站,下载了源代码,它简直是一团乱麻。生成/安装说明不起作用-代码与安装说明不同步。
我查看了hdf5网站,发现了另一组构建/安装说明,它们也与最新的代码库不同步。我不知道这个项目的结局是什么,如果它是网络上的僵尸项目,看似活着,但没有人在家。 如何轻松地将hdf5放到我的系统和xerces-c中,这样就不会搞砸现有的东西?我更喜欢使用DNF通过任何某种程度上经过批准的CentOS 8程序包repo来安装这些程序。我无法在PostGIS票证跟踪系统上记录此问题。在那里登录票证需要一个OSGEO ID,当我请求一个‘咒语’来开始时,没有返回任何东西,没有响应,
OSGEO是另一个僵尸项目,没有人的家。https://www.osgeo.org/community/getting-started-osgeo/osgeo_userid/
请仅当您自己在CentOS 8计算机或VM上完成此操作时才回复,虽然我感谢其他人的建议、指针或想象力,但它用错误的信息、无效的解决方案污染了r/postgis reddit,不仅将我的时间浪费在死胡同上,还浪费了其他人的时间。
其他人不可避免地会遇到同样的问题,并被善意的人误导,但提供的信息不正确或不完整。
推荐答案
我遇到了同样的问题,最终找到了解决方案。我需要postgis25作为postgresql10,所以我输入了这个命令
dnf --enablerepo=PowerTools install postgis25_10
PowerTools repo包含来自Redhat CodeReady Studio的codeready-Developer repo提供的包。它包含许多有用的工具。
这篇关于为什么在RHEL 8/CentOS 8上安装PostGIS 3是不可能的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!