我想升级我的PHP版本。 更新到PHP 5.5时
yum -y install php55w php55w-opcache
我得到这个错误:
Error: Package: php55w-opcache-5.5.30-2.w6.x86_64 (webtatic) Requires: php55w-common(x86-64) = 5.5.30-2.w6 Available: php55w-common-5.5.30-2.w6.x86_64 (webtatic) php55w-common(x86-64) = 5.5.30-2.w6
我怎样才能解决这个问题?
正如错误表明的那样,这应该可以做到这一点:
yum install php55w-common
那么你的初始命令应该工作:
yum install php55w php55w-opcache
或者合并成一个:
yum install php55w-common php55w php55w-opcache
在回购相关的问题,如过时的软件包,强制使用像这样的具体回购,在这种情况下,使用包含比大多数股票操作系统回购的PHP更新版本的remi包括:
yum --disablerepo="*" --enablerepo="remi" install php55w-common php55w php55w-opcache
请注意,虽然PHP 5.5已经过时:
http://php.net/supported-versions.php
5.6对于长期的支持,安全和速度来说是一个更好的select。