问题安装安装zend opcache

时间:2018-01-06 21:07:34

标签: php centos centos6 pecl opcache

我遇到安装zendopcache

的问题
  [root@cp ~]# yum install php-pecl-zendopcache
    Loaded plugins: fastestmirror, security
    Setting up Install Process
    Loading mirror speeds from cached hostfile
    Excluding mirror: mirror.de.leaseweb.net
    Excluding mirror: mirror.nl.leaseweb.net
     * epel: mirror.23media.de
    Resolving Dependencies
    --> Running transaction check
    ---> Package php-pecl-zendopcache.x86_64 0:7.0.5-2.el6 will be installed
    --> Processing Dependency: php(zend-abi) = 20090626 for package: php-pecl-zendopcache-7.0.5-2.el6.x86_64
    --> Processing Dependency: php(api) = 20090626 for package: php-pecl-zendopcache-7.0.5-2.el6.x86_64
    --> Finished Dependency Resolution
    Error: Package: php-pecl-zendopcache-7.0.5-2.el6.x86_64 (epel)
               Requires: php(zend-abi) = 20090626
               Installed: php-common-5.6.33-1.el6.remi.x86_64 (@remi-php56)
                   php(zend-abi) = 20131226-64
               Available: php-common-5.3.3-49.el6.x86_64 (base)
                   php(zend-abi) = 20090626
    Error: Package: php-pecl-zendopcache-7.0.5-2.el6.x86_64 (epel)
               Requires: php(api) = 20090626
               Installed: php-common-5.6.33-1.el6.remi.x86_64 (@remi-php56)
                   php(api) = 20131106-64
               Available: php-common-5.3.3-49.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
    [root@cp ~]#

我尝试了很多次,我尝试了所有,我不知道我能做些什么来解决这个问题,谢谢你的帮助

实际上在服务器上使用Centos 6 64位,并运行php 5.6

2 个答案:

答案 0 :(得分:0)

试试这个,也许它会有所帮助,

sudo wget http://packages.psychotic.ninja/7/base/x86_64/RPMS//keychecker-0.2-8.el7.psychotic.noarch.rpm 
yum install keychecker-1.0-3.el7.noarch.rpm
keychecker
yum remove remi-release
wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm
rpm -Uvh remi-release-7.rpm
vi /etc/yum.repos.d/remi.repo
enabled=1 `line 30`
yum update
yum install php
yum install php-opcache

答案 1 :(得分:0)

同样的问题,同样的问题,与install php-xml on centos 7相同的答案

yum-config-manager --enable remi-php56
yum install php-opcache
相关问题