centos7下yum安装postgis2_94

我与影子孤独终老i 提交于 2019-12-29 07:40:13

【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>>

执行 sudo yum install postgis2_94后,不出意外会发生以下的错误。 Error: Package: gdal-libs-1.11.0-3.rhel7.x86_64 (pgdg94) Requires: libcfitsio.so.2()(64bit) Error: Package: gdal-libs-1.11.0-3.rhel7.x86_64 (pgdg94) Requires: libdapclient.so.6()(64bit) Error: Package: gdal-libs-1.11.0-3.rhel7.x86_64 (pgdg94) Requires: libarmadillo.so.4()(64bit) Error: Package: gdal-libs-1.11.0-3.rhel7.x86_64 (pgdg94) Requires: libhdf5.so.8()(64bit) Error: Package: gdal-libs-1.11.0-3.rhel7.x86_64 (pgdg94) Requires: libfreexl.so.1()(64bit) Error: Package: gdal-libs-1.11.0-3.rhel7.x86_64 (pgdg94) Requires: libnetcdf.so.7()(64bit) Error: Package: postgis2_94-2.1.5-1.rhel7.x86_64 (pgdg94) Requires: hdf5 Error: Package: gdal-libs-1.11.0-3.rhel7.x86_64 (pgdg94) Requires: libdapserver.so.7()(64bit) Error: Package: gdal-libs-1.11.0-3.rhel7.x86_64 (pgdg94) Requires: libdap.so.17()(64bit) Error: Package: gdal-libs-1.11.0-3.rhel7.x86_64 (pgdg94) Requires: libogdi.so.3()(64bit) Error: Package: gdal-libs-1.11.0-3.rhel7.x86_64 (pgdg94) Requires: libgeotiff.so.1.2()(64bit) Error: Package: gdal-libs-1.11.0-3.rhel7.x86_64 (pgdg94) Requires: libgta.so.0()(64bit) Error: Package: gdal-libs-1.11.0-3.rhel7.x86_64 (pgdg94) Requires: libCharLS.so.1()(64bit) You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest

这个时候需要安装依赖库 sudo rpm -ivh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm

然后再执行 就会成功

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!