几天来,我一直在尝试在 Centos 6 64 位上安装 php-mcrypt,但出现了这个错误
[root@cimpan tmp]# yum install php-mcrypt
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mi.mirror.garr.it
* epel: mirror.switch.ch
* extras: mi.mirror.garr.it
* rpmforge: mirror.crazynetwork.it
* updates: mi.mirror.garr.it
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-mcrypt.x86_64 0:5.3.3-3.el6 will be installed
--> Processing Dependency: php(zend-abi) = 20090626 for package: php-mcrypt-5.3.3- 3.el6.x86_64
--> Processing Dependency: php(api) = 20090626 for package: php-mcrypt-5.3.3-3.el6.x86_64
--> Finished Dependency Resolution
Error: Package: php-mcrypt-5.3.3-3.el6.x86_64 (epel)
Requires: php(zend-abi) = 20090626
Installed: php-common-5.4.28-1.el6.remi.x86_64 (@remi)
php(zend-abi) = 20100525-x86-64
Available: php-common-5.3.3-26.el6.x86_64 (base)
php(zend-abi) = 20090626
Available: php-common-5.3.3-27.el6_5.x86_64 (updates)
php(zend-abi) = 20090626
Error: Package: php-mcrypt-5.3.3-3.el6.x86_64 (epel)
Requires: php(api) = 20090626
Installed: php-common-5.4.28-1.el6.remi.x86_64 (@remi)
php(api) = 20100412-x86-64
Available: php-common-5.3.3-26.el6.x86_64 (base)
php(api) = 20090626
Available: php-common-5.3.3-27.el6_5.x86_64 (updates)
php(api) = 20090626
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[root@cimpan tmp]# rpm -qa | grep epel
epel-release-6-8.noarch
Epel 发布版本似乎也不错。试过了,yum clean all
但也没用。可能是因为我将 PHP 更新到了 5.4.28,所以它坏了?
(PS:对服务器管理还很陌生)
答案1
是的,无法安装,因为它依赖于来自股票存储库的 PHP 版本,而您已经从第三方存储库安装了 PHP。
由于您已经不再使用受支持的 PHP 包版本,因此您要么依赖于用于 PHP 的第三方 repo 来提供包(显然他们不提供),要么手动安装它。
当您放弃操作系统的 PHP 库软件包存储库实际支持的 PHP 版本时,它们根本就不会给您带来任何好处;这应该是您在决定使用哪个版本的 PHP 时考虑的一部分。