2

我已经安装了 PostgreSQL-9.6

现在我正在尝试在 Amazon linux 上安装 PostGIS,但出现以下错误:

[root@ip-172-31-38-64 ec2-user]# yum install postgis24_96

Loaded plugins: priorities, update-motd, upgrade-helper
23 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package postgis24_96.x86_64 0:2.4.4-1.rhel6 will be installed
...
--> Finished Dependency Resolution
Error: Package: gdal-libs-1.9.2-8.rhel6.x86_64 (pgdg96)
           Requires: libdapserver.so.7()(64bit)
Error: Package: gdal-libs-1.9.2-8.rhel6.x86_64 (pgdg96)
           Requires: libcfitsio.so.0()(64bit)
Error: Package: gdal-libs-1.9.2-8.rhel6.x86_64 (pgdg96)
           Requires: libdap.so.11()(64bit)
Error: Package: gdal-libs-1.9.2-8.rhel6.x86_64 (pgdg96)
           Requires: libdapclient.so.3()(64bit)
Error: Package: postgis24_96-2.4.4-1.rhel6.x86_64 (pgdg96)
           Requires: hdf5
Error: Package: gdal-libs-1.9.2-8.rhel6.x86_64 (pgdg96)
           Requires: libfreexl.so.1()(64bit)
Error: Package: gdal-libs-1.9.2-8.rhel6.x86_64 (pgdg96)
           Requires: libnetcdf.so.6()(64bit)
Error: Package: gdal-libs-1.9.2-8.rhel6.x86_64 (pgdg96)
           Requires: libgta.so.0()(64bit)
Error: Package: gdal-libs-1.9.2-8.rhel6.x86_64 (pgdg96)
           Requires: libarmadillo.so.4()(64bit)
Error: Package: gdal-libs-1.9.2-8.rhel6.x86_64 (pgdg96)
           Requires: libxerces-c-3.0.so()(64bit)
Error: Package: gdal-libs-1.9.2-8.rhel6.x86_64 (pgdg96)
           Requires: libhdf5.so.6()(64bit)
Error: Package: gdal-libs-1.9.2-8.rhel6.x86_64 (pgdg96)
           Requires: libpoppler.so.5()(64bit)
Error: Package: gdal-libs-1.9.2-8.rhel6.x86_64 (pgdg96)
           Requires: libspatialite.so.2()(64bit)
Error: Package: gdal-libs-1.9.2-8.rhel6.x86_64 (pgdg96)
           Requires: libCharLS.so.1()(64bit)

建议在 postgresonline上安装 EPEL

yum -y install epel-release
OR
sudo rpm -ivh http://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm

但这无济于事,因为 EPEL 已经安装在 Amazon Linux 上。

也许有人已经遇到过这样的问题?或者我应该尝试切换到 Ubuntu 或其他发行版?

4

1 回答 1

0

我已经通过包搜索引擎手动添加丢失的包来解决这个问题,就像在这个安装脚本中完成的那样。为以后的版本添加了关于我自己的要点的注释和发现。

于 2019-01-16T23:15:48.100 回答