我正在阅读以下指南http://www.postgresonline.com/journal/archives/329-An-almost-idiots-guide-to-install-PostgreSQL-9.3,-PostGIS-2.1-and-pgRouting-with-Yum.html(此链接来自http://postgis.net/install)。命令yum install postgis2_93
给出以下错误:如何在Oracle Linux 6.4 x64上安装PostGIS?
Error: Package: gdal-libs-1.9.2-6.rhel6.x86_64 (pgdg93)
Requires: libhdf5.so.6()(64bit)
Error: Package: gdal-libs-1.9.2-6.rhel6.x86_64 (pgdg93)
Requires: libdapserver.so.7()(64bit)
Error: Package: gdal-libs-1.9.2-6.rhel6.x86_64 (pgdg93)
Requires: libCharLS.so.1()(64bit)
Error: Package: postgis2_93-2.1.3-1.rhel6.x86_64 (pgdg93)
Requires: libjson.so.0()(64bit)
Error: Package: gdal-libs-1.9.2-6.rhel6.x86_64 (pgdg93)
Requires: libgta.so.0()(64bit)
Error: Package: gdal-libs-1.9.2-6.rhel6.x86_64 (pgdg93)
Requires: libspatialite.so.2()(64bit)
Error: Package: gdal-libs-1.9.2-6.rhel6.x86_64 (pgdg93)
Requires: libcfitsio.so.0()(64bit)
Error: Package: postgis2_93-2.1.3-1.rhel6.x86_64 (pgdg93)
Requires: json-c
Error: Package: postgis2_93-2.1.3-1.rhel6.x86_64 (pgdg93)
Requires: hdf5
Error: Package: armadillo-4.300.0-1.rhel6.x86_64 (pgdg93)
Requires: libhdf5.so.6()(64bit)
Error: Package: gdal-libs-1.9.2-6.rhel6.x86_64 (pgdg93)
Requires: libnetcdf.so.6()(64bit)
Error: Package: gdal-libs-1.9.2-6.rhel6.x86_64 (pgdg93)
Requires: libdapclient.so.3()(64bit)
Error: Package: armadillo-4.300.0-1.rhel6.x86_64 (pgdg93)
Requires: libarpack.so.2()(64bit)
Error: Package: gdal-libs-1.9.2-6.rhel6.x86_64 (pgdg93)
Requires: libfreexl.so.1()(64bit)
Error: Package: gdal-libs-1.9.2-6.rhel6.x86_64 (pgdg93)
Requires: libdap.so.11()(64bit)
它们是预期的。然后,我做了以下(它是根据指南):
sudo rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
和yum install postgis2_93
给出如下:
http://mirror.logol.ru/epel/6/x86_64/repodata/9fdd4609f219b3ec5cfa5408ab03b84b2bce97ab6de268b890577ee86b998618-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://mirror.awanti.com/epel/6/x86_64/repodata/9fdd4609f219b3ec5cfa5408ab03b84b2bce97ab6de268b890577ee86b998618-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://ftp.fi.muni.cz/pub/linux/fedora/epel/6/x86_64/repodata/9fdd4609f219b3ec5cfa5408ab03b84b2bce97ab6de268b890577ee86b998618-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://ftp.linux.cz/pub/linux/fedora/epel/6/x86_64/repodata/9fdd4609f219b3ec5cfa5408ab03b84b2bce97ab6de268b890577ee86b998618-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://centos.kiewel-online.ch/epel/6/x86_64/repodata/9fdd4609f219b3ec5cfa5408ab03b84b2bce97ab6de268b890577ee86b998618-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://ftp.uni-kl.de/pub/linux/fedora-epel/6/x86_64/repodata/9fdd4609f219b3ec5cfa5408ab03b84b2bce97ab6de268b890577ee86b998618-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://mirror.switch.ch/ftp/mirror/epel/6/x86_64/repodata/9fdd4609f219b3ec5cfa5408ab03b84b2bce97ab6de268b890577ee86b998618-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/6/x86_64/repodata/9fdd4609f219b3ec5cfa5408ab03b84b2bce97ab6de268b890577ee86b998618-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
...
yum clean all
和yum clean metadata
不解决问题。我也尝试使用EPEL 7.1,但我得到了同样的错误。我在哪里可以得到这些包?
主机/或其他地方? – 2014-09-03 11:21:24
@CraigRinger是的,我使用yum.postgresql.org的RPM。我已经安装它,就像它写在该指令:'rpm -ivh http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-oraclelinux93-9.3-1.noarch.rpm && yum install postgresql93 postgresql93-server postgresql93-libs postgresql93-contrib postgresql93-devel它已经过去了,没有错误。 – user2717575 2014-09-03 11:33:01
因此,您的问题是您无法从EPEL获取软件包列表。代理/防火墙问题? (顺便说一下,我已经把它视为堆栈溢出的主题)。 – 2014-09-03 12:00:42