Centos 6.9安装 php5.6 过程中报错:Error: Package: php56w-mcrypt-5.6.40-1.w6.x86_64 (webtatic)

 

在 CentOS 6.9 系统下安装 php 5.6 的过程中,执行如下命令:

yum -y install php56w-pdo php56w-xml php56w-gd php56w-gd.x86_64 php56w-ldap.x86_64 \
php56w-mbstring.x86_64 php56w-mcrypt.x86_64 php56w-mysql.x86_64 php56w-pdo.x86_64 php56w-opcache.x86_64

 

报错:

Error: Package: php56w-mcrypt-5.6.40-1.w6.x86_64 (webtatic)
        Requires: libmcrypt.so.4()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

 

根据提示:需要 libmcrypt 软件包

 

解决办法:

      安装 epel-release 源即可解决。

yum install epel-release -y

      然后执行命令安装 libmcrypt

yum install libmcrypt libmcrypt-devel -y

 

 

posted on 2019-11-15 12:36  morgan363  阅读(2115)  评论(0编辑  收藏  举报

导航