bash
[root@ebs-139266 home]# rpm -ivh mysql-community-*.rpm
warning: mysql-community-client-5.7.42-1.el7.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 3a79bd29: NOKEY
error: Failed dependencies:
perl(JSON) is needed by mysql-community-test-5.7.42-1.el7.x86_64
[root@ebs-139266 home]# yum install perl-JSON
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* epel: mirror.nyist.edu.cn
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package perl-JSON.noarch 0:2.59-2.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================================================================================================================================================================================================
Package Arch Version Repository Size
==============================================================================================================================================================================================================================================================================
Installing:
perl-JSON noarch 2.59-2.el7 base 96 k
Transaction Summary
==============================================================================================================================================================================================================================================================================
Install 1 Package
Total download size: 96 k
Installed size: 264 k
Is this ok [y/d/N]: y
Downloading packages:
perl-JSON-2.59-2.el7.noarch.rpm | 96 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : perl-JSON-2.59-2.el7.noarch 1/1
Verifying : perl-JSON-2.59-2.el7.noarch 1/1
Installed:
perl-JSON.noarch 0:2.59-2.el7
Complete!
执行命令 :yum install perl-JSON 进行在线安装即可解决