1、具体详情
[root@localhost soft]# ls
mysql-community-client-8.0.18-1.el7.x86_64.rpm mysql-community-devel-8.0.18-1.el7.x86_64.rpm mysql-community-libs-8.0.18-1.el7.x86_64.rpm mysql-community-server-8.0.18-1.el7.x86_64.rpm
mysql-community-common-8.0.18-1.el7.x86_64.rpm mysql-community-embedded-compat-8.0.18-1.el7.x86_64.rpm mysql-community-libs-compat-8.0.18-1.el7.x86_64.rpm mysql-community-test-8.0.18-1.el7.x86_64.rpm
[root@localhost soft]# rpm -ivh *
warning: mysql-community-client-8.0.18-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
perl(Data::Dumper) is needed by mysql-community-test-8.0.18-1.el7.x86_64
perl(JSON) is needed by mysql-community-test-8.0.18-1.el7.x86_64
2、解决办法
[root@localhost soft]# yum -y install perl
[root@localhost soft]# yum install perl perl-Data-Dumper
[root@localhost soft]# yum install perl perl-JSON
[root@localhost soft]# yum -y install perl
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package 4:perl-5.16.3-299.el7_9.x86_64 already installed and latest version
Nothing to do
[root@localhost soft]# yum install perl perl-Data-Dumper
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package 4:perl-5.16.3-299.el7_9.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package perl-Data-Dumper.x86_64 0:2.145-3.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
============================================================================================================================================================================================================================== Package Arch Version Repository Size
==============================================================================================================================================================================================================================Installing:
perl-Data-Dumper x86_64 2.145-3.el7 base 47 k
Transaction Summary
==============================================================================================================================================================================================================================Install 1 Package
Total download size: 47 k
Installed size: 97 k
Is this ok [y/d/N]: y
Downloading packages:
perl-Data-Dumper-2.145-3.el7.x86_64.rpm | 47 kB 00:00:02
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : perl-Data-Dumper-2.145-3.el7.x86_64 1/1
Verifying : perl-Data-Dumper-2.145-3.el7.x86_64 1/1
Installed:
perl-Data-Dumper.x86_64 0:2.145-3.el7
Complete!
[root@localhost soft]# yum install perl perl-JSON
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package 4:perl-5.16.3-299.el7_9.x86_64 already installed and latest version
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:02
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!
[root@localhost soft]# rpm -ivh *
warning: mysql-community-client-8.0.18-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:mysql-community-common-8.0.18-1.e################################# [ 13%]
2:mysql-community-libs-8.0.18-1.el7################################# [ 25%]
3:mysql-community-client-8.0.18-1.e################################# [ 38%]
4:mysql-community-server-8.0.18-1.e################################# [ 50%]
5:mysql-community-test-8.0.18-1.el7################################# [ 63%]
6:mysql-community-devel-8.0.18-1.el################################# [ 75%]
7:mysql-community-libs-compat-8.0.1################################# [ 88%]
8:mysql-community-embedded-compat-8################################# [100%]
[root@localhost soft]#