[postgis-users] How to install the latest PostGIS (3.0 or very latest) on CentOS 8.1?

Regina Obe lr at pcorp.us
Fri Jun 5 09:13:32 PDT 2020


Devrim,

Thanks for the instructions, I added to this page -
https://postgis.net/install/

> so therefore, is there anything in that section that I need to do?

>
https://people.planetpostgresql.org/devrim/index.php?/archives/102-Installin
g-PostGIS-3.0-and-PostgreSQL-12-on-CentOS-8.html

I ran into a stumbling block on a fresh Centos 8.1

dnf -y config-manager --set-enabled PowerTools 

Gave -  "No such command: config-manager. Please use /usr/bin/dnf --help"

I had to do this beforehand -- can you add this line to the instructions
after the epel-release install.

yum install dnf-plugins-core

#It installed okay after, but when I go to do a yum update I get this error

yum update

Last metadata expiration check: 0:06:57 ago on Fri Jun  5 15:55:27 2020.
Error:
 Problem: cannot install the best update candidate for package
gdal30-libs-3.0.4-3.rhel8.x86_64
  - nothing provides libzstd.so.1()(64bit) needed by
gdal30-libs-3.0.4-4.rhel8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to
use not only best candidate packages)


yum update --nobest 

shows
Problem: cannot install the best update candidate for package
gdal30-libs-3.0.4-3.rhel8.x86_64
  - nothing provides libzstd.so.1()(64bit) needed by
gdal30-libs-3.0.4-4.rhel8.x86_64
============================================================================
===================================================================
 Package                           Architecture                 Version
Repository                         Size
============================================================================
===================================================================
Skipping packages with broken dependencies:
 gdal30-libs                       x86_64
3.0.4-4.rhel8                          pgdg-common                       7.5
M

Transaction Summary
============================================================================
===================================================================
Skip  1 Package

Nothing to do.
Complete!


#any rate seems to have installed okay, but I assume the above will cause
issues for upgrades

testgis=# CREATE EXTENSION postgis;
CREATE EXTENSION
#testgis=# CREATE EXTENSION postgis_raster;
testgis=# SELECT postgis_full_version();


 
postgis_full_version

----------------------------------------------------------------------------
-------------------------------------------------------------------
-------------------------------------------------------------------
 POSTGIS="3.0.1 ec2a9aa" [EXTENSION] PGSQL="120" GEOS="3.8.1-CAPI-1.13.3"
PROJ="6.3.2" GDAL="GDAL 3.0.4, released 2020/01/28" LIBXML="2.9.7" LI
BJSON="0.13.1" LIBPROTOBUF="1.3.0" WAGYU="0.4.3 (Internal)" RASTER
(1 row)

Thanks,
Regina



More information about the postgis-users mailing list