/usr/bin/perl is needed by MySQL-server-5.5.28-1.linux2.6.i386

[root@localhost ~]# rpm -ivh MySQL-server-5.5.28-1.linux2.6.i386.rpm

error: Failed dependencies:

/usr/bin/perl is needed by MySQL-server-5.5.28-1.linux2.6.i386

[root@localhost ~]# which perl

/usr/local/bin/perl

[root@localhost ~]# echo $PATH

/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

用 ln -s  /usr/local/bin/perl  /usr/bin/perl没用。
 
 
 
 
用rpm -ivh MySQL-server-5.5.28-1.linux2.6.i386.rpm --nodeps --force
这句话是解决了依赖性关系,强制安装,或者你可以将所有依赖关系的包按提示依次全部安装,还有一种办法就是配置个yum源,直接yum安装。

你可能感兴趣的:(linux)