mysql安装报错Failed dependencies:/usr/bin/perl is needed by mysql-server-5.1.73-5.el6_6.x86_64
[root@nameNode Packages]# rpm -ivh mysql-server-5.1.73-5.el6_6.x86_64.rpm
error: Failed dependencies:
/usr/bin/perl is needed by mysql-server-5.1.73-5.el6_6.x86_64
mysql = 5.1.73-5.el6_6 is needed by mysql-server-5.1.73-5.el6_6.x86_64
perl(DBI) is needed by mysql-server-5.1.73-5.el6_6.x86_64
perl(Data::Dumper) is needed by mysql-server-5.1.73-5.el6_6.x86_64
perl(File::Basename) is needed by mysql-server-5.1.73-5.el6_6.x86_64
perl(File::Copy) is needed by mysql-server-5.1.73-5.el6_6.x86_64
perl(File::Path) is needed by mysql-server-5.1.73-5.el6_6.x86_64
perl(File::Temp) is needed by mysql-server-5.1.73-5.el6_6.x86_64
perl(Getopt::Long) is needed by mysql-server-5.1.73-5.el6_6.x86_64
perl(POSIX) is needed by mysql-server-5.1.73-5.el6_6.x86_64
perl(Sys::Hostname) is needed by mysql-server-5.1.73-5.el6_6.x86_64
perl(strict) is needed by mysql-server-5.1.73-5.el6_6.x86_64
perl(vars) is needed by mysql-server-5.1.73-5.el6_6.x86_64
perl-DBD-MySQL is needed by mysql-server-5.1.73-5.el6_6.x86_64
perl-DBI is needed by mysql-server-5.1.73-5.el6_6.x86_64
[root@nameNode Packages]#
加载光驱,使用yum试试
[root@nameNode Packages]# cd /etc/yum.repos.d/
[root@nameNode yum.repos.d]# ls
public-yum-ol6.repo
[root@nameNode Packages]# cp public-yum-ol6.repo public-yum-ol6.repo.bak
[root@nameNode Packages]# vi /etc/yum.repos.d/public-yum-ol6.repo
[public_ol6_latest]
name=Oracle Linux $releasever Latest ($basearch)
baseurl=file:///mnt/cdrom/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
[root@nameNode Packages]# yum install mysql mysql-server mysql-devel -y
...
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum
Memory : 69 M RSS (371 MB VSZ)
Started: Fri May 5 05:05:03 2017 - 32:41 ago
State : Traced/Stopped, pid: 5108
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum
Memory : 69 M RSS (371 MB VSZ)
Started: Fri May 5 05:05:03 2017 - 32:43 ago
State : Traced/Stopped, pid: 5108
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum
Memory : 69 M RSS (371 MB VSZ)
Started: Fri May 5 05:05:03 2017 - 32:45 ago
State : Traced/Stopped, pid: 5108
...
--yum locked 需要解锁
[root@nameNode run]# pwd
/var/run
[root@nameNode run]# rm -rf yum.pid
[root@nameNode run]#
[root@nameNode Packages]# yum install mysql mysql-server mysql-devel -y
Loaded plugins: ulninfo
Setting up Install Process
public_ol6_latest | 3.7 kB 00:00 ...
Not using downloaded repomd.xml because it is older than what we have:
Current : Thu Apr 20 16:36:33 2017
Downloaded: Tue Jul 28 02:17:54 2015
...
[Errno 256] No more mirrors to try.
...
[root@nameNode Packages]# yum clean all
Loaded plugins: ulninfo
Cleaning repos: public_ol6_latest
Cleaning up Everything
[root@nameNode Packages]#
---再试
[root@nameNode Packages]# yum install mysql mysql-server mysql-devel -y
...
Transaction Summary
================================================================================================================================
=============
Install 18 Package(s)
Total download size: 23 M
Installed size: 70 M
Downloading Packages:
--------------------------------------------------------------------------------------------------------------------------------
-------------
Total 6.2 MB/s | 23 MB
00:03
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows:
openssh-5.3p1-122.el6.x86_64 is a duplicate with openssh-5.3p1-111.el6.x86_64
openssh-server-5.3p1-122.el6.x86_64 is a duplicate with openssh-server-5.3p1-111.el6.x86_64
Installing : 1:perl-Pod-Escapes-1.04-141.el6.x86_64
1/18
Installing : 3:perl-version-0.77-141.el6.x86_64
2/18
Installing : 4:perl-libs-5.10.1-141.el6.x86_64
[################################################################################## ] 3/18
...
Verifying : 1:perl-Module-Pluggable-3.90-141.el6.x86_64
13/18
Verifying : libselinux-devel-2.0.94-5.8.el6.x86_64
14/18
Verifying : keyutils-libs-devel-1.4-5.el6.x86_64
15/18
Verifying : zlib-devel-1.2.3-29.el6.x86_64
16/18
Verifying : krb5-devel-1.10.3-42.el6.x86_64
17/18
Verifying : 4:perl-5.10.1-141.el6.x86_64
18/18
Installed:
mysql.x86_64 0:5.1.73-5.el6_6 mysql-devel.x86_64 0:5.1.73-5.el6_6 mysql-server.x86_64 0:5.1.73-5.el6_6
Dependency Installed:
keyutils-libs-devel.x86_64 0:1.4-5.el6 krb5-devel.x86_64 0:1.10.3-42.el6 libcom_err-devel.x86_64 0:1.42.8-
1.0.2.el6
libselinux-devel.x86_64 0:2.0.94-5.8.el6 libsepol-devel.x86_64 0:2.0.41-4.el6 openssl-devel.x86_64 0:1.0.1e-
42.el6
perl.x86_64 4:5.10.1-141.el6 perl-DBD-MySQL.x86_64 0:4.013-3.el6 perl-DBI.x86_64 0:1.609-4.el6
perl-Module-Pluggable.x86_64 1:3.90-141.el6 perl-Pod-Escapes.x86_64 1:1.04-141.el6 perl-Pod-Simple.x86_64 1:3.13-
141.el6
perl-libs.x86_64 4:5.10.1-141.el6 perl-version.x86_64 3:0.77-141.el6 zlib-devel.x86_64 0:1.2.3-29.el6
Complete!
[root@nameNode Packages]#
---ok!