当前在 PHP 5.6 时更新到 PHP 7.0 时出错

Error during update to PHP 7.0 when currently on PHP 5.6

我使用 remi repo 安装了 CentOS 6.7 和 PHP 5.6。我想从 remi 升级到 PHP 7.0,并且我已经更新了 remi 存储库以启用 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

有什么建议吗?

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

如果可以删除php-pecl-memcache,就可以升级了。 实在需要的话,还得等新版本了。

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