【问题标题】:Unable to update PHP from 5.4 to higher version in CentOs 7无法在 CentOs 7 中将 PHP 从 5.4 更新到更高版本
【发布时间】:2018-06-07 08:01:11
【问题描述】:

我正在使用CentOS Linux release 7.4.1708 (Core),对于我的一些项目任务,我需要高于 5.4 的 PHP,但无法更新它。 我使用了这些命令:

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm

rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm

然后:

yum install php56w php56w-opcache

HERE所述

但收到此错误:

错误:php56w-common 与 php-common-5.4.16-43.el7_4.x86_64 冲突
错误:包:php56w-5.6.32-1.w6.x86_64 (webtatic)
要求:httpd-mmn = 20051115
已安装:httpd-2.4.6-67.el7.centos.6.x86_64 (@updates)
httpd-mmn = 20120211
httpd-mmn = 20120211x8664
httpd-mmn = 20120211-x86-64
可用:httpd-2.4.6-67.el7.centos.x86_64 (base)
httpd-mmn = 20120211x8664
httpd-mmn = 20120211-x86-64
httpd-mmn = 20120211
可用:httpd-2.4.6-67.el7.centos.2.x86_64(更新)
httpd-mmn = 20120211x8664
httpd-mmn = 20120211-x86-64
httpd-mmn = 20120211
可用:httpd-2.4.6-67.el7.centos.5.x86_64(更新)
httpd-mmn = 20120211x8664
httpd-mmn = 20120211-x86-64
httpd-mmn = 20120211
错误:包:php56w-common-5.6.32-1.w6.x86_64 (webtatic)
要求:libgmp.so.3()(64bit)
您可以尝试使用 --skip-broken 来解决此问题
您可以尝试运行:rpm -Va --nofiles --nodigest

我现在可以做什么来更新它?

【问题讨论】:

标签: php linux centos yum


【解决方案1】:

要安装,首先必须将你的CentOS 7.x版本对应的Webtatic EL yum仓库信息添加到yum:

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

比执行yum install:

yum install php70w php70w-mysql php70w-common php70w-xml php70w-mbstring

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-03-17
    • 1970-01-01
    • 2020-12-29
    • 2020-11-02
    • 2012-03-10
    • 1970-01-01
    • 2018-09-02
    • 1970-01-01
    相关资源
    最近更新 更多