BUG #15028: PostGIS won't install/yum update fails due to gdal-libs package dependency problem

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: kop(at)meme(dot)com
Subject: BUG #15028: PostGIS won't install/yum update fails due to gdal-libs package dependency problem
Date: 2018-01-24 19:13:41
Message-ID: 20180124191341.25002.39872@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 15028
Logged by: Karl Pinc
Email address: kop(at)meme(dot)com
PostgreSQL version: 10.1
Operating system: RHEL 7.4
Description:

Hi,

This is the same bug (only for PG 10.1, PostGIS 2.4) as:

BUG #15027: EPEL / Potgres 95 yum repo package version conflict affecting
postgis22_95
https://www.postgresql.org/message-id/20180124054816.25007.2607%40wrigleys.postgresql.org

and

postgis package broken in postgresql 9.3 repo
https://www.postgresql.org/message-id/zarafa.5a6887c8.2bd8.47e064692d4d8df9%40zarafa7.open-future.be

We couldn't do a 'yum update' to update the armadillo package (in the epel
repo), which is required by the gdal-libs package (in the pgdg10 repo),
which is required by the postgis24_10 package (in the pgdg10 repo).

My guess is the gdal-libs package has a dependency on an armadillo package
version which is no longer available.

To make a long story short, the system wound up with postgis24_10
un-installed and the system up-to-date with yum. Now postgis24_10 won't
install.

Here is a transcript with relevant info:
---------------------<snip>---------------

[root(at)foo ~]# yum install postgis24_10
Loaded plugins: langpacks, product-id, search-disabled-repos,
subscription-
: manager
Resolving Dependencies
--> Running transaction check
---> Package postgis24_10.x86_64 0:2.4.3-1.rhel7 will be installed
--> Processing Dependency: gdal-libs >= 1.9.0 for package:
postgis24_10-2.4.3-1.rhel7.x86_64
--> Processing Dependency: libgdal.so.1()(64bit) for package:
postgis24_10-2.4.3-1.rhel7.x86_64
--> Running transaction check
---> Package gdal-libs.x86_64 0:1.11.4-11.rhel7 will be installed
--> Processing Dependency: libgeotiff.so.2()(64bit) for package:
gdal-libs-1.11.4-11.rhel7.x86_64
--> Processing Dependency: libarmadillo.so.4()(64bit) for package:
gdal-libs-1.11.4-11.rhel7.x86_64
--> Running transaction check
---> Package gdal-libs.x86_64 0:1.11.4-11.rhel7 will be installed
--> Processing Dependency: libarmadillo.so.4()(64bit) for package:
gdal-libs-1.11.4-11.rhel7.x86_64
---> Package libgeotiff.x86_64 0:1.4.0-1.rhel7 will be installed
--> Finished Dependency Resolution
Error: Package: gdal-libs-1.11.4-11.rhel7.x86_64 (pgdg10)
Requires: libarmadillo.so.4()(64bit)
**********************************************************************
yum can be configured to try to resolve such errors by temporarily
enabling
disabled repos and searching for missing dependencies.
To enable this functionality please set 'notify_only=0' in
/etc/yum/pluginconf.d/search-disabled-repos.conf
**********************************************************************

Error: Package: gdal-libs-1.11.4-11.rhel7.x86_64 (pgdg10)
Requires: libarmadillo.so.4()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[root(at)foo ~]# yum info gdal-libs
Loaded plugins: langpacks, product-id, search-disabled-repos,
subscription-
: manager
Available Packages
Name : gdal-libs
Arch : x86_64
Version : 1.11.4
Release : 11.rhel7
Size : 4.4 M
Repo : pgdg10/7Server/x86_64
Summary : GDAL file format library
URL : http://www.gdal.org
License : MIT
Description : This package contains the GDAL file format library.

[root(at)foo ~]# yum info libarmadillo
Loaded plugins: langpacks, product-id, search-disabled-repos,
subscription-
: manager
Error: No matching Packages to list
[root(at)foo ~]# yum info armadillo
Loaded plugins: langpacks, product-id, search-disabled-repos,
subscription-
: manager
Installed Packages
Name : armadillo
Arch : x86_64
Version : 8.300.0
Release : 1.el7
Size : 58 k
Repo : installed
From repo : epel
Summary : Fast C++ matrix library with syntax similar to MATLAB and
Octave
URL : http://arma.sourceforge.net/
License : ASL 2.0
Description : Armadillo is a C++ linear algebra library (matrix maths)
: aiming towards a good balance between speed and ease of use.
: Integer, floating point and complex numbers are supported,
: as well as a subset of trigonometric and statistics
functions.
: Various matrix decompositions are provided through optional
: integration with LAPACK and ATLAS libraries.
: A delayed evaluation approach is employed (during compile
time)
: to combine several operations into one and reduce (or
eliminate)
: the need for temporaries. This is accomplished through
recursive
: templates and template meta-programming.
: This library is useful if C++ has been decided as the
language
: of choice (due to speed and/or integration capabilities),
rather
: than another language like Matlab or Octave.

[root(at)foo ~]# yum remove armadillo
Loaded plugins: langpacks, product-id, search-disabled-repos,
subscription-
: manager
Resolving Dependencies
--> Running transaction check
---> Package armadillo.x86_64 0:8.300.0-1.el7 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository
Size
================================================================================
Removing:
armadillo x86_64 8.300.0-1.el7 @epel
58 k

Transaction Summary
================================================================================
Remove 1 Package

Installed size: 58 k
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : armadillo-8.300.0-1.el7.x86_64
1/1
Verifying : armadillo-8.300.0-1.el7.x86_64
1/1

Removed:
armadillo.x86_64 0:8.300.0-1.el7

Complete!
[root(at)foo ~]# yum install postgis24_10
Loaded plugins: langpacks, product-id, search-disabled-repos,
subscription-
: manager
Resolving Dependencies
--> Running transaction check
---> Package postgis24_10.x86_64 0:2.4.3-1.rhel7 will be installed
--> Processing Dependency: gdal-libs >= 1.9.0 for package:
postgis24_10-2.4.3-1.rhel7.x86_64
--> Processing Dependency: libgdal.so.1()(64bit) for package:
postgis24_10-2.4.3-1.rhel7.x86_64
--> Running transaction check
---> Package gdal-libs.x86_64 0:1.11.4-11.rhel7 will be installed
--> Processing Dependency: libgeotiff.so.2()(64bit) for package:
gdal-libs-1.11.4-11.rhel7.x86_64
--> Processing Dependency: libarmadillo.so.4()(64bit) for package:
gdal-libs-1.11.4-11.rhel7.x86_64
--> Running transaction check
---> Package gdal-libs.x86_64 0:1.11.4-11.rhel7 will be installed
--> Processing Dependency: libarmadillo.so.4()(64bit) for package:
gdal-libs-1.11.4-11.rhel7.x86_64
---> Package libgeotiff.x86_64 0:1.4.0-1.rhel7 will be installed
--> Finished Dependency Resolution
Error: Package: gdal-libs-1.11.4-11.rhel7.x86_64 (pgdg10)
Requires: libarmadillo.so.4()(64bit)
**********************************************************************
yum can be configured to try to resolve such errors by temporarily
enabling
disabled repos and searching for missing dependencies.
To enable this functionality please set 'notify_only=0' in
/etc/yum/pluginconf.d/search-disabled-repos.conf
**********************************************************************

Error: Package: gdal-libs-1.11.4-11.rhel7.x86_64 (pgdg10)
Requires: libarmadillo.so.4()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

Browse pgsql-bugs by date

  From Date Subject
Next Message PG Bug reporting form 2018-01-24 20:51:16 BUG #15029: Cannot create postgis extension after install
Previous Message Bruce Momjian 2018-01-24 18:35:02 Re: Fwd: Error about save extracted data