我试图在我的CentOS 6 VPS上安装mcrypt扩展。 我已经完成了EPEL rpm,然后更新了一切。 现在,我不断收到这个错误,我也安装了php-api。
[root@vps ~]# yum -y install php-mcrypt Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.raystedman.net * epel: mirror.oss.ou.edu * extras: mirror.teklinks.com * updates: bay.uchicago.edu Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package php-mcrypt.x86_64 0:5.1.6-5.el5 will be installed --> Processing Dependency: php-api = 20041225 for package: php-mcrypt-5.1.6-5.el5.x86_64 --> Finished Dependency Resolution Error: Package: php-mcrypt-5.1.6-5.el5.x86_64 (epel) Requires: php-api = 20041225 Installed: php-common-5.3.3-23.el6_4.x86_64 (@updates) php-api = 20090626 Available: php-common-5.3.3-22.el6.x86_64 (base) php-api = 20090626 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
AmI跳过/丢失重要的东西? 请不要投这个票。
谢谢!
您安装了错误的 EPEL RPM。
您正在运行CentOS 6,但是您安装了EPEL 5的epel-release RPM。
删除它并安装EPEL 6的RPM。