Centos 7中的PHP mcrypt错误

时间:2014-08-21 10:11:51

标签: php centos

有谁可以解释这个yum问题? yum是否需要更新这些RPM?如果可以的话,它正式可用于rhel6.1吗?

[root@pstagetest yum.repos.d]# yum install php-pecl-igbinary Loaded plugins: changelog, downloadonly, product-id, subscription-manager     Updating Red Hat repositories. Setting up Install Process Resolving Dependencies    

--> Running transaction check

---> Package php-pecl-igbinary.x86_64 0:1.1.1-2.el6.remi will be installed

--> Processing Dependency: php(zend-abi) = 20090626-x86-64 for package: php-pecl-igbinary-1.1.1-2.el6.remi.x86_64

--> Processing Dependency: php(api) = 20090626-x86-64 for package: php-pecl-igbinary-1.1.1-2.el6.remi.x86_64

--> Finished Dependency Resolution

Error: Package: php-pecl-igbinary-1.1.1-2.el6.remi.x86_64 (repo) Requires: php(api) = 20090626-x86-64 Installed: php-common-5.3.9-1.el6.remi    .x86_64 (@repo) php(api) = 20090626 php(api) = 20090626-x86-64    

Error: Package: php-pecl-igbinary-1.1.1-2.el6.remi.x86_64 (repo) Requires: php(zend-abi) = 20090626-x86-64 Installed: php-common-5.3.9-1.el6    .remi.x86_64 (@repo) php(zend-abi) = 20090626 php(zend-abi) = 20090626-x86-64    

You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest

1 个答案:

答案 0 :(得分:0)

  1. 删除旧的epel repo
  2. 删除所有php包
  3. 通过安装yum list搜索php包grep php
  4. yum删除pacakge名称
  5. 下载新的epel http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm
  6. rpm -Uvh epel-release *
  7. 然后安装php
  8. 安装php-mcrypt