php-mcrypt依赖问题安装在CentOS(最新的服务器版本)


php-mcrypt dependency issues when installing on CentOS (latest server release)

当执行yum install php-mcrypt*时,我得到以下错误:

Error: Package: php-mcrypt-5.3.28-4.w5.x86_64 (webtatic)
           Requires: php-common = 5.3.28-4.w5
           Installed: php-common-5.4.30-1.el7.remi.x86_64 (@remi)
               php-common = 5.4.30-1.el7.remi
           Available: php-common-5.2.17-1.1.w5.x86_64 (webtatic)
               php-common = 5.2.17-1.1.w5
           Available: php-common-5.3.27-2.w5.x86_64 (webtatic)
               php-common = 5.3.27-2.w5
           Available: php-common-5.3.28-1.w5.x86_64 (webtatic)
               php-common = 5.3.28-1.w5
           Available: php-common-5.3.28-2.w5.x86_64 (webtatic)
               php-common = 5.3.28-2.w5
           Available: php-common-5.3.28-3.w5.x86_64 (webtatic)
               php-common = 5.3.28-3.w5
           Available: php-common-5.3.28-4.w5.x86_64 (webtatic)
               php-common = 5.3.28-4.w5
           Available: php-common-5.4.16-21.el7.x86_64 (base)
               php-common = 5.4.16-21.el7
Error: Package: php-mcrypt-5.3.28-4.w5.x86_64 (webtatic)
           Requires: libltdl.so.3()(64bit)

我需要降级我的php-common还是有更好的选择?

请在回复中详细说明,因为这是我第一次在CentOS机器上设置LAMP。

我通过升级到PHP 5.5,然后使用以下命令格式安装所需的扩展来解决这个问题。

yum --enablerepo=remi,remi-php55 reinstall php-mcrypt

似乎我的安装尝试都不想很好地与PHP 5.4.30兼容。