1

I am trying to install the gdal on my centos 8. I tried with following command

sudo yum install gdal-libs

And it threw me following error,

Last metadata expiration check: 0:05:58 ago on Sun 10 Jan 2021 10:52:18 PM EST.
Error:
 Problem: conflicting requests
  - nothing provides libdap.so.25()(64bit) needed by gdal-libs-3.0.4-5.el8.x86_64
  - nothing provides libdapclient.so.6()(64bit) needed by gdal-libs-3.0.4-5.el8.x86_64
  - nothing provides libdapserver.so.7()(64bit) needed by gdal-libs-3.0.4-5.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

Please, anyone, suggest to me, how to solve this error?

Andrew Schulman
  • 8,811
  • 21
  • 32
  • 47
dhiraj
  • 113
  • 1
  • 1
  • 4

2 Answers2

2

You can enable the powertools repository to solve this issue,

sudo yum install dnf-plugins-core
sudo yum config-manager --set-enabled powertools

Now you can install the gdal by following code,

sudo yum install gdal-devel
Tek Kshetri
  • 136
  • 2
2

Installing GDAL requires both EPEL (which contains GDAL) and PowerTools (which contains some of its dependencies).

You can enable EPEL by installing its repo:

dnf -y install epel-release

PowerTools is a repo included with base CentOS. You can enable it thus:

dnf config-manager --set-enabled powertools

Now you can install GDAL successfully.

Michael Hampton
  • 244,070
  • 43
  • 506
  • 972