【问题标题】:Error during update to PHP 7.0 when currently on PHP 5.6当前在 PHP 5.6 上更新到 PHP 7.0 时出错
【发布时间】:2016-03-27 09:03:42
【问题描述】:

我使用 remi repo 安装了 CentOS 6.7 和 PHP 5.6。我想从 remi 升级到 PHP 7.0,并且我已经更新了 remi repo 以启用 PHP 7.0。我安装了 memcached 3.0.8。

我运行这个命令。

yum --enablerepo=remi,remi-php70 update

但是出现了这个错误

Error: Package: php-pecl-memcache-3.0.8-3.el6.remi.5.6.x86_64 (@remi-php56)
           Requires: php(api) = 20131106-64
           Removing: php-common-5.6.16-1.el6.remi.x86_64 (@remi-php56)
               php(api) = 20131106-64
           Updated By: php-common-7.0.1-1.el6.remi.x86_64 (remi-php70)
               php(api) = 20151012-64
           Available: php-common-5.3.3-40.el6_6.x86_64 (base)
               php(api) = 20090626
           Available: php-common-5.3.3-46.el6_6.x86_64 (updates)
               php(api) = 20090626
           Available: php-common-5.4.45-1.el6.remi.x86_64 (remi)
               php(api) = 20100412-x86-64
           Available: php-common-5.4.45-2.el6.remi.x86_64 (remi)
               php(api) = 20100412-x86-64
           Available: php-common-7.0.0-3.el6.remi.x86_64 (remi-php70)
               php(api) = 20151012-64
Error: Package: php-pecl-memcache-3.0.8-3.el6.remi.5.6.x86_64 (@remi-php56)
           Requires: php(zend-abi) = 20131226-64
           Removing: php-common-5.6.16-1.el6.remi.x86_64 (@remi-php56)
               php(zend-abi) = 20131226-64
           Updated By: php-common-7.0.1-1.el6.remi.x86_64 (remi-php70)
               php(zend-abi) = 20151012-64
           Available: php-common-5.3.3-40.el6_6.x86_64 (base)
               php(zend-abi) = 20090626
           Available: php-common-5.3.3-46.el6_6.x86_64 (updates)
               php(zend-abi) = 20090626
           Available: php-common-5.4.45-1.el6.remi.x86_64 (remi)
               php(zend-abi) = 20100525-x86-64
           Available: php-common-5.4.45-2.el6.remi.x86_64 (remi)
               php(zend-abi) = 20100525-x86-64
           Available: php-common-7.0.0-3.el6.remi.x86_64 (remi-php70)
               php(zend-abi) = 20151012-64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

有什么建议吗?

【问题讨论】:

    标签: php centos6


    【解决方案1】:

    memcache 扩展尚未与 PHP 7 兼容,因此在 remi 存储库中不可用,因此 yum 阻止了升级,这是预期的。

    如果您可以删除 php-pecl-memcache,您将能够升级。 如果你真的需要它,你必须等待新版本。

    兼容性和可用性列表,请参阅:http://blog.remirepo.net/pages/PECL-extensions-RPM-status

    【讨论】:

    • 哦,雷米,我很惊讶你能回答这个问题,太好了。是的,现在我在运行 yum --enablerepo=remi,remi-php70 update 时不再遇到错误,可能是因为您已经更新了它,谢谢 Remi,感谢您对 PHP 和您的存储库的奉献
    • 是的,我们现在有一个包(来自 git),但不是正式版本。
    • ic ic,就是说如果正式发布了,是不是要换掉还是怎么换?
    • 它将(通过 yum 更新)更新到任何稳定/官方版本,如果可用。
    猜你喜欢
    • 2018-11-14
    • 2017-03-12
    • 2017-12-04
    • 2018-11-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-04-27
    • 2018-10-29
    相关资源
    最近更新 更多