PostGIS 2.1.8

  1. instalar PostGIS

# yum install postgis2_94


Error: Faltan dependencias

Error: Pactase: postgis2_94-2.1.8-1.rhel6.x86_64 (pgdg94)

Requires: hdf5

Error: Package: gdal-libs-1.9.2-7.rhel6.x86_64 (pgdg94)

Requires: libgta.so.0()(64bit)

Error: Package: gdal-libs-1.9.2-7.rhel6.x86_64 (pgdg94)

Requires: libhdf5.so.6()(64bit)

Error: Package: gdal-libs-1.9.2-7.rhel6.x86_64 (pgdg94)

Requires: libcfitsio.so.0()(64bit)

Error: Package: gdal-libs-1.9.2-7.rhel6.x86_64 (pgdg94)

Requires: libdapclient.so.3()(64bit)

Error: Package: gdal-libs-1.9.2-7.rhel6.x86_64 (pgdg94)

Requires: libnetcdf.so.6()(64bit)

Error: Package: gdal-libs-1.9.2-7.rhel6.x86_64 (pgdg94)

Requires: libdap.so.11()(64bit)

Error: Package: gdal-libs-1.9.2-7.rhel6.x86_64 (pgdg94)

Requires: libspatialite.so.2()(64bit)

Error: Package: gdal-libs-1.9.2-7.rhel6.x86_64 (pgdg94)

Requires: libfreexl.so.1()(64bit)

Error: Package: gdal-libs-1.9.2-7.rhel6.x86_64 (pgdg94)

Requires: libdapserver.so.7()(64bit)

Error: Package: gdal-libs-1.9.2-7.rhel6.x86_64 (pgdg94)

Requires: libCharLS.so.1()(64bit)

Error: Package: gdal-libs-1.9.2-7.rhel6.x86_64 (pgdg94)

Pimero intente:

# yum -y install epel-release

Si no funciona, instalar el paquete epel

# sudo rpm -ivh http://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm

# sudo yum upgrade ca-certificates --disablerepo=epel


2. En PgAdmin realizar la siguiente consulta en una base de datos demo para comprobar la instalación de postgis.

CREATE EXTENSION postgis;

Con la consulta se puede ver la versión de postgis instalada.

SELECT postgis_full_version();


Error:

could not load library "/usr/pgsql-9.2/lib/postgis-2.0.so": /usr/pgsql-9.2/lib/postgis-2.0.so: undefined symbol: pj_get_spheroid_defn

Solución: Cambiar version de proj de 4.7 a 4.8

Ver version del proj

# yum list installed | grep proj

rpm -ivh ftp://bo.mirror.garr.it/1/postgresql/repos/yum/9.2/redhat/rhel-6-x86_64/proj-4.8.0-2.rhel6.x86_64.rpm

# yum install proj

# service postgresql-9.4 restart

results matching ""

    No results matching ""