首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在centOS 6.9中升级php-5.6到7.3时显示多个错误(最终)

在centOS 6.9中升级php-5.6到7.3时显示多个错误(最终)
EN

Stack Overflow用户
提问于 2021-05-07 19:38:26
回答 1查看 322关注 0票数 1

我试图在centOS 6.9上将我的php版本5.6升级到7.3。我跟着这个。

一切正常,但是我在运行命令时得到了包错误-

sudo yum install php -公共php opcache php-mcrypt php-cli php-gd php-curl php-mysql

它一直在说-

代码语言:javascript
复制
--> Processing Dependency: libxml2.so.2(LIBXML2_2.9.0)(64bit) for package: php-x ml-7.3.28-1.el7.remi.x86_64
--> Finished Dependency Resolution
Error: Package: libzip5-1.7.3-1.el7.remi.x86_64 (remi-safe)
Requires: liblzma.so.5()(64bit)
Error: Package: php-twig-1.35.3-1.el6.remi.5.6.x86_64 (@remi-php56)
Requires: php(api) = 20131106-64
Removing: php-common-5.6.40-23.el6.remi.x86_64 (@remi-php56)
php(api) = 20131106-64
Updated By: php-common-7.3.28-1.el7.remi.x86_64 (remi-php73)
php(api) = 20180731-64
Available: php-common-5.3.3-49.el6.x86_64 (base)
php(api) = 20090626
Available: php-common-7.3.27-1.el7.remi.x86_64 (remi-php73)
php(api) = 20180731-64
Error: Package: php-7.3.28-1.el7.remi.x86_64 (remi-php73)
Requires: httpd-mmn = 20120211x8664
Installed: httpd-2.2.15-69.el6.centos.x86_64 (@base)
httpd-mmn = 20051115
Available: httpd-2.2.15-59.el6.centos.x86_64 (base)
httpd-mmn = 20051115
Available: httpd-2.2.15-60.el6.centos.4.x86_64 (updates)
httpd-mmn = 20051115
Available: httpd-2.2.15-60.el6.centos.5.x86_64 (updates)
httpd-mmn = 20051115
Available: httpd-2.2.15-60.el6.centos.6.x86_64 (updates)
httpd-mmn = 20051115
Error: Package: php-xml-7.3.28-1.el7.remi.x86_64 (remi-php73)
Requires: libxml2.so.2(LIBXML2_2.9.0)(64bit)
Error: Package: libzip5-1.7.3-1.el7.remi.x86_64 (remi-safe)
Requires: liblzma.so.5(XZ_5.0)(64bit)
Error: Package: php-7.3.28-1.el7.remi.x86_64 (remi-php73)
Requires: libcrypto.so.10(OPENSSL_1.0.2)(64bit)
Error: Package: php-cli-7.3.28-1.el7.remi.x86_64 (remi-php73)
Requires: libcrypto.so.10(OPENSSL_1.0.2)(64bit)
Error: Package: php-gd-7.3.28-1.el7.remi.x86_64 (remi-php73)
Requires: libpng15.so.15()(64bit)
Error: Package: php-gmp-7.3.28-1.el7.remi.x86_64 (remi-php73)
Requires: libgmp.so.10()(64bit)
Error: Package: php-ldap-7.3.28-1.el7.remi.x86_64 (remi-php73)
Requires: libsasl2.so.3()(64bit)
Error: Package: php-twig-1.35.3-1.el6.remi.5.6.x86_64 (@remi-php56)
Requires: php(zend-abi) = 20131226-64
Removing: php-common-5.6.40-23.el6.remi.x86_64 (@remi-php56)
php(zend-abi) = 20131226-64
Updated By: php-common-7.3.28-1.el7.remi.x86_64 (remi-php73)
php(zend-abi) = 20180731-64
Available: php-common-5.3.3-49.el6.x86_64 (base)
php(zend-abi) = 20090626
Available: php-common-7.3.27-1.el7.remi.x86_64 (remi-php73)
php(zend-abi) = 20180731-64
You could try using --skip-broken to work around the problem
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
glibc-utils-2.17-55.el6.x86_64 has missing requires of libgd.so.2()(64bit)
EN

回答 1

Stack Overflow用户

发布于 2021-05-08 05:28:22

1/ CentOS 6自2020年11月以来已死亡

我衷心建议使用支持的版本。

2/您正在尝试用el7软件包(对于CentOS 7)安装el6软件包。

这行不通。

3/您需要正确的存储库配置文件,这些文件由

顺便说一句,"remi“存储库已经关闭,不会收到任何更新,如EPEL。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67440772

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档