Centos 6.7 PHP从PHP 5.2升级到5.6

时间:2019-06-11 10:52:12

标签: php

在Centos 6.7上从PHP 5.2将PHP更新到5.6会导致以下错误。有帮助吗?

[root@web2 yum.repos.d]# yum upgrade php*

Loaded plugins: fastestmirror

Setting up Upgrade Process

Loading mirror speeds from cached hostfile

 * base: centos.mirror.moack.net
 * extras: centos.mirror.moack.net
 * remi: mirror.innosol.asia
 * remi-php56: mirror.innosol.asia
 * updates: centos.mirror.moack.net

Resolving Dependencies

--> Running transaction check

---> Package php.x86_64 0:5.2.17-r4686.mchost will be updated

---> Package php.x86_64 0:5.6.40-9.el6.remi will be an update

---> Package php-cli.x86_64 0:5.2.17-r4686.mchost will be updated

---> Package php-cli.x86_64 0:5.6.40-9.el6.remi will be an update

---> Package php-common.x86_64 0:5.2.17-r4686.mchost will be updated

--> Processing Dependency: php-pecl-zip(x86-64) for package: php-
common-5.6.40-9.el6.remi.x86_64

---> Package php-common.x86_64 0:5.6.40-9.el6.remi will be an update

--> Processing Dependency: php-pecl-jsonc(x86-64) for package: php-common-5.6.40-9.el6.remi.x86_64

--> Processing Dependency: php-pecl-zip(x86-64) for package: php-common-5.6.40-9.el6.remi.x86_64

---> Package php-gd.x86_64 0:5.2.17-r4686.mchost will be updated

---> Package php-gd.x86_64 0:5.6.40-9.el6.remi will be an update

--> Processing Dependency: gd-last(x86-64) >= 2.1.1 for package: php-gd-5.6.40-9.el6.remi.x86_64

--> Processing Dependency: libgd.so.3()(64bit) for package: php-gd-5.6.40-9.el6.remi.x86_64

---> Package php-imap.x86_64 0:5.2.17-r4686.mchost will be updated

---> Package php-imap.x86_64 0:5.6.40-9.el6.remi will be an update
---> Package php-mbstring.x86_64 0:5.2.17-r4686.mchost will be updated

---> Package php-mbstring.x86_64 0:5.6.40-9.el6.remi will be an update

---> Package php-mcrypt.x86_64 0:5.2.17-r4686.mchost will be updated

---> Package php-mcrypt.x86_64 0:5.6.40-9.el6.remi will be an update

---> Package php-mssql.x86_64 0:5.2.17-r4686.mchost will be updated

---> Package php-mssql.x86_64 0:5.6.40-9.el6.remi will be an update

---> Package php-mysql.x86_64 0:5.2.17-r4686.mchost will be obsoleted

---> Package php-mysqlnd.x86_64 0:5.6.40-9.el6.remi will be obsoleting

---> Package php-pdo.x86_64 0:5.2.17-r4686.mchost will be updated

---> Package php-pdo.x86_64 0:5.6.40-9.el6.remi will be an update

---> Package php-soap.x86_64 0:5.2.17-r4686.mchost will be updated

---> Package php-soap.x86_64 0:5.6.40-9.el6.remi will be an update

---> Package php-tidy.x86_64 0:5.2.17-r4686.mchost will be updated

---> Package php-tidy.x86_64 0:5.6.40-9.el6.remi will be an update

---> Package php-xml.x86_64 0:5.2.17-r4686.mchost will be updated

---> Package php-xml.x86_64 0:5.6.40-9.el6.remi will be an update

--> Running transaction check

---> Package gd-last.x86_64 0:2.2.5-5.el6.remi will be installed

--> Processing Dependency: libfontconfig.so.1()(64bit) for package: gd-last-2.2.5-5.el6.remi.x86_64

--> Processing Dependency: libtiff.so.3()(64bit) for package: gd-last-2.2.5-5.el6.remi.x86_64

--> Processing Dependency: libwebp.so.5()(64bit) for package: gd-last-2.2.5-5.el6.remi.x86_64

---> Package php-common.x86_64 0:5.2.17-r4686.mchost will be updated

--> Processing Dependency: php-pecl-zip(x86-64) for package: php-common-5.6.40-9.el6.remi.x86_64

---> Package php-common.x86_64 0:5.6.40-9.el6.remi will be an update

--> Processing Dependency: php-pecl-zip(x86-64) for package: php-common-5.6.40-9.el6.remi.x86_64

---> Package php-pecl-jsonc.x86_64 0:1.3.10-2.el6.remi.5.6 will be installed

--> Running transaction check

---> Package fontconfig.x86_64 0:2.8.0-5.el6 will be installed

---> Package gd-last.x86_64 0:2.2.5-5.el6.remi will be installed

--> Processing Dependency: libwebp.so.5()(64bit) for package: gd-last-2.2.5-5.el6.remi.x86_64

---> Package libtiff.x86_64 0:3.9.4-21.el6_8 will be installed

---> Package php-common.x86_64 0:5.2.17-r4686.mchost will be updated

--> Processing Dependency: php-pecl-zip(x86-64) for package: php-common-5.6.40-9.el6.remi.x86_64

---> Package php-common.x86_64 0:5.6.40-9.el6.remi will be an update

--> Processing Dependency: php-pecl-zip(x86-64) for package: php-common-5.6.40-9.el6.remi.x86_64

--> Finished Dependency Resolution

Error: Package: php-common-5.6.40-9.el6.remi.x86_64 (remi-php56)

           Requires: php-pecl-zip(x86-64)

           Removing: php-common-5.2.17-r4686.mchost.x86_64 (installed)

               php-pecl-zip(x86-64) = 1.8.11

           Updated By: php-common-5.6.40-9.el6.remi.x86_64 (remi-php56)

               Not found

Error: Package: gd-last-2.2.5-5.el6.remi.x86_64 (remi)

           Requires: libwebp.so.5()(64bit)

 You could try using --skip-broken to work around the problem

 You could try running: rpm -Va --nofiles --nodigest

1 个答案:

答案 0 :(得分:0)

1 /首先从 mchost 存储库中删除所有内容

2 /注意,PHP 5.6已于2018年12月达到其end of life,尽管“ remi”存储库中的软件包已进行安全修复,但仍强烈建议升级到维护版本。

3 /首先更新您的发行版,因为6.7确实很旧,当前版本为 6.10 。您也可以考虑在CentOS 7.6上进行全新安装。

4 /按照Wizard的说明进行操作(至少缺少用于公共依赖项的“安全可靠”存储库)