cenos 8 安装官方源gmt失败

cenos 8 安装官方源gmt失败

主要步骤如下:

sudo yum install epel-release
sudo yum install yum-plugin-copr   (个人软件仓库集合)
sudo yum copr enable genericmappingtools/gmt   (启用GMT官方仓库)
sudo yum install gmt

但是出现依赖错误,
gmt-6.0.0-1.el8.x86_64 requires libnetcdf.so.15()(64bit), but none of the providers can be installed

以下是安装过程:


[zhao@zhaozhonghai ~]$ sudo yum install epel-release

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

[sudo] password for zhao: 
Last metadata expiration check: 0:06:25 ago on Mon 16 Mar 2020 10:35:47 AM EDT.
Dependencies resolved.
================================================================================
 Package               Architecture    Version            Repository       Size
================================================================================
Installing:
 epel-release          noarch          8-5.el8            extras           22 k

Transaction Summary
================================================================================
Install  1 Package

Total download size: 22 k
Installed size: 30 k
Is this ok [y/N]: y
Downloading Packages:
epel-release-8-5.el8.noarch.rpm                  84 kB/s |  22 kB     00:00    
--------------------------------------------------------------------------------
Total                                            29 kB/s |  22 kB     00:00     
warning: /var/cache/dnf/extras-2770d521ba03e231/packages/epel-release-8-5.el8.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 8483c65d: NOKEY
CentOS-8 - Extras                               1.6 MB/s | 1.6 kB     00:00    
Importing GPG key 0x8483C65D:
 Userid     : "CentOS (CentOS Official Signing Key) "
 Fingerprint: 99DB 70FA E1D7 CE22 7FB6 4882 05B5 55B3 8483 C65D
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Is this ok [y/N]: y
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Installing       : epel-release-8-5.el8.noarch                            1/1 
  Running scriptlet: epel-release-8-5.el8.noarch                            1/1 
  Verifying        : epel-release-8-5.el8.noarch                            1/1 

Installed:
  epel-release-8-5.el8.noarch                                                   

Complete!
[zhao@zhaozhonghai ~]$ yum install yum-plugin-copr
Error: This command has to be run under the root user.
[zhao@zhaozhonghai ~]$ sudo yum install yum-plugin-copr
Extra Packages for Enterprise Linux 8 - x86_64  444 kB/s | 6.0 MB     00:13    
Last metadata expiration check: 0:00:03 ago on Mon 16 Mar 2020 10:43:49 AM EDT.
Package dnf-plugins-core-4.0.8-3.el8.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[zhao@zhaozhonghai ~]$ sudo yum copr enable genericmappingtools/gmt

You are about to enable a Copr repository. Please note that this
repository is not part of the main distribution, and quality may vary.

The Fedora Project does not exercise any power over the contents of
this repository beyond the rules outlined in the Copr FAQ at
,
and packages are not held to any quality or security level.

Please do not file bug reports about these packages in Fedora
Bugzilla. In case of problems, contact the owner of this repository.

Do you really want to enable copr.fedorainfracloud.org/genericmappingtools/gmt? [y/N]: y
Repository successfully enabled.
[zhao@zhaozhonghai ~]$ sudo yum install gmt
CentOS-8 - AppStream                            5.0 kB/s | 4.3 kB     00:00    
CentOS-8 - Base                                 1.2 kB/s | 3.8 kB     00:03    
CentOS-8 - Extras                               216  B/s | 1.5 kB     00:07    
Copr repo for gmt owned by genericmappingtools  3.3 kB/s |  15 kB     00:04    
Extra Packages for Enterprise Linux 8 - x86_64  7.6 kB/s | 9.3 kB     00:01    
Error: 
 Problem: package gmt-6.0.0-1.el8.x86_64 requires libnetcdf.so.15()(64bit), but none of the providers can be installed
  - conflicting requests
  - nothing provides libsz.so.2()(64bit) needed by netcdf-4.7.0-2.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

https://centos.pkgs.org/8/centos-powertools-x86_64/libaec-1.0.2-3.el8.x86_64.rpm.html
解决方式是:在这个网址,下载了libaec-1.0.2-3.el8.x86_64.rpm,安装后,在执行之前的gmt安装命令就OK了。

你可能感兴趣的:(GAMIT,GMT,centos)