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

标签 php linux command-line centos upgrade

我正在尝试在 centOS 6.9 上将我的 php 版本 5.6 升级到 7.3。
I follow this.
一切正常,但我在运行以下命令时遇到包错误 -

sudo yum install php php-common php-opcache php-mcrypt php-cli php-gd php-curl php-mysql


一直在说——
--> 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)

最佳答案

1/ CentOS 6 已死 自 2020 年 11 月起
我衷心建议使用受支持的版本。
2/您正在尝试安装 el7 带有 的软件包(对于 CentOS 7 也是如此) el6
这行不通。
3/你需要正确的存储库配置 提供的文件

  • remi-release for el6

  • 顺便说一句,“remi”存储库已关闭,并且不会收到任何更新,因为 EPEL

    关于php - 在 centOS 6.9 (Final) 中将 php-5.6 升级到 7.3 时显示多个错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67440772/

    相关文章:

    php - ZF语言与翻译

    php - 如何使用 PHP OPCache?

    php - 我如何改进此 mysql 查询以提高性能

    php - 如何使用 php 在控制台中设置文本样式? [在 PHP CLI 中运行]

    C 中的命令行参数打印不正确

    php - 用于存储数百万张图像的文件夹结构?

    linux - JCR/Jackrabit/Derby - 在 Linux 上恢复版本时使用二进制数据的 IO 速度慢

    c - 如何从linux库传递c中的参数

    c++ - #error "SSE2 instruction set not enabled"包含 <emmintrin.h> 时

    argc/argv 中的命令行解析