我使用remi repo安装了带有PHP 5.6的CentOS 6.7。我想从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
有什么建议吗?
答案 0 :(得分:1)
memcache扩展还与PHP 7不兼容,因此在remi存储库中不可用,因此yum会阻止升级,这是预期的。
如果你可以删除php-pecl-memcache,你就可以升级了。 如果你真的需要它,你必须等待新版本。
兼容性和可用性列表,请参阅:foreach