gpt4 book ai didi

php - 无法在 CentOs 7 中将 PHP 从 5.4 更新到更高版本

转载 作者:太空狗 更新时间:2023-10-29 12:40:12 28 4
gpt4 key购买 nike

我正在使用 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 安装 php56w php56w-opcache

描述HERE

但出现此错误:

Error: php56w-common conflicts with php-common-5.4.16-43.el7_4.x86_64
Error: Package: php56w-5.6.32-1.w6.x86_64 (webtatic)
Requires: httpd-mmn = 20051115
Installed: httpd-2.4.6-67.el7.centos.6.x86_64 (@updates)
httpd-mmn = 20120211
httpd-mmn = 20120211x8664
httpd-mmn = 20120211-x86-64
Available: httpd-2.4.6-67.el7.centos.x86_64 (base)
httpd-mmn = 20120211x8664
httpd-mmn = 20120211-x86-64
httpd-mmn = 20120211
Available: httpd-2.4.6-67.el7.centos.2.x86_64 (updates)
httpd-mmn = 20120211x8664
httpd-mmn = 20120211-x86-64
httpd-mmn = 20120211
Available: httpd-2.4.6-67.el7.centos.5.x86_64 (updates)
httpd-mmn = 20120211x8664
httpd-mmn = 20120211-x86-64
httpd-mmn = 20120211
Error: Package: php56w-common-5.6.32-1.w6.x86_64 (webtatic)
Requires: libgmp.so.3()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

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

最佳答案

安装首先要在yum中加入你的CentOS 7.x版本对应的Webtatic EL 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

关于php - 无法在 CentOs 7 中将 PHP 从 5.4 更新到更高版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47979228/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com