[postgis-users] How to install on Amazon ec2 instance
Stephen Woodbridge
woodbri at swoodbridge.com
Thu Aug 14 18:20:01 PDT 2014
Regina,
Thanks, that got me a step closer. So I tried to install
epel-release-6-8.noarch.rpm
but got errors because a new version was already installed.
[ec2-user at ip-10-0-0-159 ~]$ sudo yum repolist all
Loaded plugins: priorities, update-motd, upgrade-helper
13 packages excluded due to repository priority protections
repo id repo name status
amzn-main/latest amzn-main-Base enabled:
4,766+35
amzn-main-debuginfo/latest amzn-main-debuginfo disabled
amzn-nosrc/latest amzn-nosrc-Base disabled
amzn-preview/latest amzn-preview-Base disabled
amzn-preview-debuginfo/latest amzn-preview-debuginfo disabled
amzn-updates/latest amzn-updates-Base enabled:
1,361
amzn-updates-debuginfo/latest amzn-updates-debuginfo disabled
epel/x86_64 Extra Packages for Enterprise Li disabled
epel-debuginfo/x86_64 Extra Packages for Enterprise Li disabled
epel-source/x86_64 Extra Packages for Enterprise Li disabled
epel-testing/x86_64 Extra Packages for Enterprise Li disabled
epel-testing-debuginfo/x86_64 Extra Packages for Enterprise Li disabled
epel-testing-source/x86_64 Extra Packages for Enterprise Li disabled
pgdg93/latest/x86_64 PostgreSQL 9.3 latest - x86_64 enabled:
224+13
pgdg93-source/latest/x86_64 PostgreSQL 9.3 latest - x86_64 - disabled
repolist: 6,351
So after installing pgdg-redhat93-9.3-1.noarch.rpm
I found out that I could install using a disabled repo like the
following but I still get an error at the end.
[ec2-user at ip-10-0-0-159 ~]$ sudo yum install postgis2_93 --enablerepo=epel
Loaded plugins: priorities, update-motd, upgrade-helper
983 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package postgis2_93.x86_64 0:2.1.3-1.rhel6 will be installed
--> Processing Dependency: postgis-client = 2.1.3-1.rhel6 for package:
postgis2_93-2.1.3-1.rhel6.x86_64
--> Processing Dependency: geos >= 3.4.2 for package:
postgis2_93-2.1.3-1.rhel6.x86_64
--> Processing Dependency: proj for package:
postgis2_93-2.1.3-1.rhel6.x86_64
--> Processing Dependency: json-c for package:
postgis2_93-2.1.3-1.rhel6.x86_64
--> Processing Dependency: hdf5 for package:
postgis2_93-2.1.3-1.rhel6.x86_64
--> Processing Dependency: libproj.so.0()(64bit) for package:
postgis2_93-2.1.3-1.rhel6.x86_64
--> Processing Dependency: libjson.so.0()(64bit) for package:
postgis2_93-2.1.3-1.rhel6.x86_64
--> Processing Dependency: libgeos_c.so.1()(64bit) for package:
postgis2_93-2.1.3-1.rhel6.x86_64
--> Processing Dependency: libgdal.so.1()(64bit) for package:
postgis2_93-2.1.3-1.rhel6.x86_64
--> Running transaction check
---> Package gdal-libs.x86_64 0:1.9.2-5.rhel6 will be installed
--> Processing Dependency:
libmysqlclient.so.16(libmysqlclient_16)(64bit) for package:
gdal-libs-1.9.2-5.rhel6.x86_64
--> Processing Dependency: libxerces-c-3.0.so()(64bit) for package:
gdal-libs-1.9.2-5.rhel6.x86_64
--> Processing Dependency: libtiff.so.3()(64bit) for package:
gdal-libs-1.9.2-5.rhel6.x86_64
--> Processing Dependency: libspatialite.so.2()(64bit) for package:
gdal-libs-1.9.2-5.rhel6.x86_64
--> Processing Dependency: libpoppler.so.5()(64bit) for package:
gdal-libs-1.9.2-5.rhel6.x86_64
--> Processing Dependency: libodbcinst.so.2()(64bit) for package:
gdal-libs-1.9.2-5.rhel6.x86_64
--> Processing Dependency: libodbc.so.2()(64bit) for package:
gdal-libs-1.9.2-5.rhel6.x86_64
--> Processing Dependency: libnetcdf.so.6()(64bit) for package:
gdal-libs-1.9.2-5.rhel6.x86_64
--> Processing Dependency: libmysqlclient.so.16()(64bit) for package:
gdal-libs-1.9.2-5.rhel6.x86_64
--> Processing Dependency: liblzma.so.0()(64bit) for package:
gdal-libs-1.9.2-5.rhel6.x86_64
--> Processing Dependency: libjasper.so.1()(64bit) for package:
gdal-libs-1.9.2-5.rhel6.x86_64
--> Processing Dependency: libgta.so.0()(64bit) for package:
gdal-libs-1.9.2-5.rhel6.x86_64
--> Processing Dependency: libgeotiff.so.2()(64bit) for package:
gdal-libs-1.9.2-5.rhel6.x86_64
--> Processing Dependency: libfreexl.so.1()(64bit) for package:
gdal-libs-1.9.2-5.rhel6.x86_64
--> Processing Dependency: libdapserver.so.7()(64bit) for package:
gdal-libs-1.9.2-5.rhel6.x86_64
--> Processing Dependency: libdapclient.so.3()(64bit) for package:
gdal-libs-1.9.2-5.rhel6.x86_64
--> Processing Dependency: libdap.so.11()(64bit) for package:
gdal-libs-1.9.2-5.rhel6.x86_64
--> Processing Dependency: libcfitsio.so.0()(64bit) for package:
gdal-libs-1.9.2-5.rhel6.x86_64
--> Processing Dependency: libarmadillo.so.4()(64bit) for package:
gdal-libs-1.9.2-5.rhel6.x86_64
--> Processing Dependency: libCharLS.so.1()(64bit) for package:
gdal-libs-1.9.2-5.rhel6.x86_64
---> Package geos.x86_64 0:3.4.2-1.3.amzn1 will be installed
---> Package hdf5.x86_64 0:1.8.5.patch1-7.el6 will be installed
--> Processing Dependency: libgfortran.so.3(GFORTRAN_1.0)(64bit) for
package: hdf5-1.8.5.patch1-7.el6.x86_64
--> Processing Dependency: libgfortran.so.3()(64bit) for package:
hdf5-1.8.5.patch1-7.el6.x86_64
---> Package json-c.x86_64 0:0.11-4.5.amzn1 will be installed
---> Package postgis2_93-client.x86_64 0:2.1.3-1.rhel6 will be installed
---> Package proj.x86_64 0:4.8.0-2.rhel6 will be installed
--> Running transaction check
---> Package CharLS.x86_64 0:1.0-1.el6 will be installed
---> Package armadillo.x86_64 0:4.320.0-1.el6 will be installed
--> Processing Dependency: liblapack.so.3()(64bit) for package:
armadillo-4.320.0-1.el6.x86_64
--> Processing Dependency: libclapack.so.3()(64bit) for package:
armadillo-4.320.0-1.el6.x86_64
--> Processing Dependency: libcblas.so.3()(64bit) for package:
armadillo-4.320.0-1.el6.x86_64
--> Processing Dependency: libblas.so.3()(64bit) for package:
armadillo-4.320.0-1.el6.x86_64
--> Processing Dependency: libarpack.so.2()(64bit) for package:
armadillo-4.320.0-1.el6.x86_64
---> Package cfitsio.x86_64 0:3.240-3.el6 will be installed
---> Package compat-libtiff3.x86_64 0:3.9.4-10.13.amzn1 will be installed
---> Package freexl.x86_64 0:1.0.0d-1.el6 will be installed
---> Package gdal-libs.x86_64 0:1.9.2-5.rhel6 will be installed
--> Processing Dependency: libpoppler.so.5()(64bit) for package:
gdal-libs-1.9.2-5.rhel6.x86_64
---> Package jasper-libs.x86_64 0:1.900.1-15.5.amzn1 will be installed
---> Package libdap.x86_64 0:3.11.0-1.el6 will be installed
---> Package libgeotiff.x86_64 0:1.4.0-1.el6 will be installed
---> Package libgfortran.x86_64 0:4.8.2-7.87.amzn1 will be installed
--> Processing Dependency: libquadmath.so.0(QUADMATH_1.0)(64bit) for
package: libgfortran-4.8.2-7.87.amzn1.x86_64
--> Processing Dependency: /usr/lib64/libquadmath.so.0.0.0 for package:
libgfortran-4.8.2-7.87.amzn1.x86_64
--> Processing Dependency: libquadmath.so.0()(64bit) for package:
libgfortran-4.8.2-7.87.amzn1.x86_64
---> Package libgta.x86_64 0:1.0.2-2.el6 will be installed
---> Package libspatialite.x86_64 0:2.4.0-0.6.RC4.el6 will be installed
---> Package mysql51-libs.x86_64 0:5.1.73-3.69.amzn1 will be installed
---> Package netcdf.x86_64 0:4.1.1-3.el6.5 will be installed
---> Package unixODBC.x86_64 0:2.2.14-12.6.amzn1 will be installed
--> Processing Dependency: libltdl.so.7()(64bit) for package:
unixODBC-2.2.14-12.6.amzn1.x86_64
---> Package xerces-c.x86_64 0:3.0.1-0.20.1.el6 will be installed
---> Package xz-compat-libs.x86_64 0:5.1.2-5alpha.10.amzn1 will be installed
--> Running transaction check
---> Package arpack.x86_64 0:3.1.3-1.el6 will be installed
---> Package atlas.x86_64 0:3.8.4-2.6.amzn1 will be installed
---> Package blas.x86_64 0:3.2.1-4.5.amzn1 will be installed
---> Package gdal-libs.x86_64 0:1.9.2-5.rhel6 will be installed
--> Processing Dependency: libpoppler.so.5()(64bit) for package:
gdal-libs-1.9.2-5.rhel6.x86_64
---> Package libquadmath.x86_64 0:4.8.2-7.87.amzn1 will be installed
---> Package libtool-ltdl.x86_64 0:2.4.2-18.4.8.2.21.amzn1 will be installed
--> Finished Dependency Resolution
Error: Package: gdal-libs-1.9.2-5.rhel6.x86_64 (pgdg93)
Requires: libpoppler.so.5()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[ec2-user at ip-10-0-0-159 ~]$ sudo yum search poppler --enablerepo=epel
Loaded plugins: priorities, update-motd, upgrade-helper
983 packages excluded due to repository priority protections
============================= N/S matched: poppler
=============================
pypoppler.x86_64 : Python bindings for the Poppler PDF rendering library
poppler-cpp.i686 : Pure C++ wrapper for poppler
poppler-cpp.x86_64 : Pure C++ wrapper for poppler
poppler-devel.x86_64 : Libraries and headers for poppler
poppler-glib.i686 : Glib wrapper for poppler
poppler-glib.x86_64 : Glib wrapper for poppler
poppler.i686 : PDF rendering library
poppler.x86_64 : PDF rendering library
poppler-cpp-devel.x86_64 : Development files for C++ wrapper
poppler-data.noarch : Encoding files
poppler-glib-devel.x86_64 : Development files for glib wrapper
poppler-utils.x86_64 : Command line utilities for converting PDF files
Name and summary matches only, use "search all" for everything.
So it looks like it wants libpoppler.so.5 but the repos only have
[ec2-user at ip-10-0-0-159 ~]$ ls /usr/lib64/libpoppler.so*
/usr/lib64/libpoppler.so /usr/lib64/libpoppler.so.37.0.0
/usr/lib64/libpoppler.so.37
Any thoughts on how to deal with this?
-Steve
On 8/14/2014 6:27 PM, Paragon Corporation wrote:
> Steve,
>
> Looks like the Yum PostgreSQL repo might be compatible with Amazon Linux
> from this excerpt
>
> http://www.bitsandpix.com/entry/amazon-ec2-installing-postgres-93-on-amazon-
> linux-instance-local-storage/
>
>
> Here is article we wrote about using Yum PostgreSQL for CentOS which might
> be useful too.
>
> http://www.postgresonline.com/journal/archives/329-An-almost-idiots-guide-to
> -install-PostgreSQL-9.3,-PostGIS-2.1-and-pgRouting-with-Yum.html
>
> Hope that helps,
> Regina
> http://www.postgis.us
> http://postgis.net
>
>
>
> -----Original Message-----
> From: postgis-users-bounces at lists.osgeo.org
> [mailto:postgis-users-bounces at lists.osgeo.org] On Behalf Of Stephen
> Woodbridge
> Sent: Thursday, August 14, 2014 5:40 PM
> To: PostGIS Users Discussion
> Subject: [postgis-users] How to install on Amazon ec2 instance
>
> Hi all,
>
> I'm trying to setup an amazon ec2 instance with postgis using yum, but it
> does not seem to have postgis in their repos.
>
> [ec2-user at ip-10-0-0-159 ~]$ uname -a
> Linux ip-10-0-0-159 3.10.42-52.145.amzn1.x86_64 #1 SMP Tue Jun 10
> 23:46:43 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
> [ec2-user at ip-10-0-0-159 ~]$ cat /etc/motd
>
> __| __|_ )
> _| ( / Amazon Linux AMI
> ___|\___|___|
>
>
> I would like to avoid building it from source.
>
> I have installed:
>
> sudo yum install postgresql9.x86_64 postgresql9-contrib.x86_64
> postgresql9-devel.x86_64 postgresql9-libs.x86_64 postgresql9-server.x86_64
>
> Anyone know if there is a repository that is compatible with this? and how
> to configure the server to use it?
>
> Thanks,
> -Steve
> _______________________________________________
> postgis-users mailing list
> postgis-users at lists.osgeo.org
> http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users
>
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at lists.osgeo.org
> http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users
>
More information about the postgis-users
mailing list