我试图在PostGIS 8上安装最新的CentOS 3.0.x,但没有成功。
我认为没有人在RHEL 8或CentOS 8上运行CentOS,我不明白为什么不。似乎不可能安装。
我已经通过禁用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上,这样就不会使任何现有的东西被弄糟了?我更喜欢通过任何经过批准的CentOS 8软件包回购使用dnf安装这些。
我无法将此问题登录到PostGIS票证跟踪系统中。在那里登录票证需要一个OSGEO ID,当我请求一个‘咒语’开始时,什么都不返回,没有响应,
OSGEO是另一个僵尸项目,没人在家。用户/
如果你真的在CentOS 8机器或VM上做过这件事,请回复,尽管我很欣赏别人的建议、指示或想象,它用错误的信息、不工作的解决方案污染了r/postgis的编辑,不仅浪费了我的时间在死胡同上,而且浪费了其他人的时间。
其他人不可避免地也会遇到同样的问题,他们被误导了,而这些问题是善意的,但提供了不正确或不完整的信息。
发布于 2019-11-18 23:01:32
我也遇到了同样的问题,终于找到了解决办法。我需要postgis25作为postgresql10,所以我输入了以下命令
dnf --enablerepo=PowerTools install postgis25_10
PowerTools回购包来自codeready-developer repo,来自Redhat CodeReady Studio。它包含了许多有用的工具。
发布于 2021-02-25 23:28:19
不能为RHEL 8 https://access.redhat.com/discussions/5417621启用PowerTools
备注: PowerTools是CentOS存储库。在RHEL 8上,我们有CodeReady生成器存储库!
现在我可以在RHEL-8上安装PostgreSQL12的PostGIS-3。
解决方案:
sudo subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms
dnf install postgis30_12
发布于 2019-12-30 10:56:10
总结前面的答案,以下是在CentOS-8上安装PostGIS-3所需的命令:
dnf -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm
dnf -qy module disable postgresql
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
dnf --enablerepo=PowerTools install postgresql12-server postgresql12-contrib postgis30_12
https://stackoverflow.com/questions/58405357
复制相似问题