在Centos 7.8上安装php 7.4时出现包错误问题



我对Centos 7.8和PHP7有问题。我浏览了Stack Overfow,发现了一些类似的帖子,但没有得到问题的答案。我有php5.6,当我尝试安装php74时,我会收到下面的错误。我已经尝试安装Required文件,但它只是抛出另一个错误,说它需要相同的文件。

错误:

Package: php-mcrypt-7.1.33-10.el7.remi.x86_64 (remi-php71)
Requires: php-common(x86-64) = 7.1.33-10.el7.remi
Removing: php-common-5.6.40-23.el7.remi.x86_64 (@remi-php56)
php-common(x86-64) = 5.6.40-23.el7.remi
Updated By: php-common-7.4.12-1.el7.remi.x86_64 (remi-php74)
php-common(x86-64) = 7.4.12-1.el7.remi
Available: php-common-5.4.16-48.el7.x86_64 (base)
php-common(x86-64) = 5.4.16-48.el7
Available: php-common-5.4.45-18.el7.remi.x86_64 (remi)
php-common(x86-64) = 5.4.45-18.el7.remi
Available: php-common-5.6.40-22.el7.remi.x86_64 (remi-php56)
php-common(x86-64) = 5.6.40-22.el7.remi
Available: php-common-7.1.33-9.el7.remi.x86_64 (remi-php71)
php-common(x86-64) = 7.1.33-9.el7.remi
Available: php-common-7.1.33-10.el7.remi.x86_64 (remi-php71)
php-common(x86-64) = 7.1.33-10.el7.remi
Available: php-common-7.2.33-1.el7.remi.x86_64 (remi-php72)
php-common(x86-64) = 7.2.33-1.el7.remi
Available: php-common-7.2.34-1.el7.remi.x86_64 (remi-php72)
php-common(x86-64) = 7.2.34-1.el7.remi
Available: php-common-7.3.23-1.el7.remi.x86_64 (remi-php73)
php-common(x86-64) = 7.3.23-1.el7.remi
Available: php-common-7.3.24-1.el7.remi.x86_64 (remi-php73)
php-common(x86-64) = 7.3.24-1.el7.remi
Available: php-common-7.4.11-1.el7.remi.x86_64 (remi-php74)
php-common(x86-64) = 7.4.11-1.el7.remi
Error: Package: php-recode-7.3.24-1.el7.remi.x86_64 (remi-php73)
Requires: php-common(x86-64) = 7.3.24-1.el7.remi
Removing: php-common-5.6.40-23.el7.remi.x86_64 (@remi-php56)
php-common(x86-64) = 5.6.40-23.el7.remi
Updated By: php-common-7.4.12-1.el7.remi.x86_64 (remi-php74)
php-common(x86-64) = 7.4.12-1.el7.remi
Available: php-common-5.4.16-48.el7.x86_64 (base)
php-common(x86-64) = 5.4.16-48.el7
Available: php-common-5.4.45-18.el7.remi.x86_64 (remi)
php-common(x86-64) = 5.4.45-18.el7.remi
Available: php-common-5.6.40-22.el7.remi.x86_64 (remi-php56)
php-common(x86-64) = 5.6.40-22.el7.remi
Available: php-common-7.1.33-9.el7.remi.x86_64 (remi-php71)
php-common(x86-64) = 7.1.33-9.el7.remi
Available: php-common-7.1.33-10.el7.remi.x86_64 (remi-php71)
php-common(x86-64) = 7.1.33-10.el7.remi
Available: php-common-7.2.33-1.el7.remi.x86_64 (remi-php72)
php-common(x86-64) = 7.2.33-1.el7.remi
Available: php-common-7.2.34-1.el7.remi.x86_64 (remi-php72)
php-common(x86-64) = 7.2.34-1.el7.remi
Available: php-common-7.3.23-1.el7.remi.x86_64 (remi-php73)
php-common(x86-64) = 7.3.23-1.el7.remi
Available: php-common-7.3.24-1.el7.remi.x86_64 (remi-php73)
php-common(x86-64) = 7.3.24-1.el7.remi
Available: php-common-7.4.11-1.el7.remi.x86_64 (remi-php74)
php-common(x86-64) = 7.4.11-1.el7.remi

似乎已经启用了各种php存储库(remi-hp71、remi-hp72…(,只保留您想要的

如向导所述

yum-config-manager --disable 'remi-php*'
yum-config-manager --enable   remi-php74

软件包:php-mcrypt-7.13-3.el7.remi.x86_64(remi-hp71(

mcrypt扩展已被弃用,并已从PHP 7.2中删除

另请阅读:关于libmcrypt和php-mcrypt-

错误:包:php-recode-7.3.24-1.el7.remi.x86_64(remi-hp73(

不推荐使用recode扩展,并且已从PHP 7.4中删除

所以你必须在升级之前删除这些扩展,如果你";真的";需要它们,您无法升级。

yum remove php-recode php-mcrypt

注意:php pecl mcrypt和php pecl recode可用于遗留应用程序,但不鼓励使用,也不支持。

最新更新