无法为PHP7.4.1安装php-devel
我无法安装php-devel,当我输入:无法为PHP7.4.1安装php-devel,php,server,configuration,centos,php-7.4,Php,Server,Configuration,Centos,Php 7.4,我无法安装php-devel,当我输入: yum install php-devel Resolving Dependencies --> Running transaction check ---> Package php-devel.x86_64 0:7.4.0-1.el7.remi will be installed --> Processing Dependency: php-cli(x86-64) = 7.4.0-1.el7.remi for package:
yum install php-devel
Resolving Dependencies
--> Running transaction check
---> Package php-devel.x86_64 0:7.4.0-1.el7.remi will be installed
--> Processing Dependency: php-cli(x86-64) = 7.4.0-1.el7.remi for package: php-devel-7.4.0-1.el7.remi.x86_64
--> Finished Dependency Resolution
Error: Package: php-devel-7.4.0-1.el7.remi.x86_64 (remi-php74)
Requires: php-cli(x86-64) = 7.4.0-1.el7.remi
Installed: php-cli-7.4.1~RC1-1.el7.remi.x86_64 (@remi-modular-test)
php-cli(x86-64) = 7.4.1~RC1-1.el7.remi
Available: php-cli-5.4.16-46.el7.x86_64 (base)
php-cli(x86-64) = 5.4.16-46.el7
Available: php-cli-5.4.16-46.1.el7_7.x86_64 (updates)
php-cli(x86-64) = 5.4.16-46.1.el7_7
Available: php-cli-5.4.45-17.el7.remi.x86_64 (remi)
php-cli(x86-64) = 5.4.45-17.el7.remi
Available: php-cli-5.4.45-18.el7.remi.x86_64 (remi)
php-cli(x86-64) = 5.4.45-18.el7.remi
Available: php-cli-5.5.38-11.el7.remi.x86_64 (remi-php55)
php-cli(x86-64) = 5.5.38-11.el7.remi
Available: php-cli-5.5.38-12.el7.remi.x86_64 (remi-php55)
php-cli(x86-64) = 5.5.38-12.el7.remi
Available: php-cli-5.6.40-13.el7.remi.x86_64 (remi-php56)
php-cli(x86-64) = 5.6.40-13.el7.remi
Available: php-cli-5.6.40-14.el7.remi.x86_64 (remi-php56)
php-cli(x86-64) = 5.6.40-14.el7.remi
Available: php-cli-7.2.24-1.el7.remi.x86_64 (remi-php72)
php-cli(x86-64) = 7.2.24-1.el7.remi
Available: php-cli-7.2.25-1.el7.remi.x86_64 (remi-php72)
php-cli(x86-64) = 7.2.25-1.el7.remi
Available: php-cli-7.4.0~RC6-15.el7.remi.x86_64 (remi-php74)
php-cli(x86-64) = 7.4.0~RC6-15.el7.remi
Available: php-cli-7.4.0-1.el7.remi.x86_64 (remi-php74)
php-cli(x86-64) = 7.4.0-1.el7.remi
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
如何解决这个问题?谢谢
操作系统:CentOS Linux 7(核心)
CPE操作系统名称:CPE:/o:centos:centos:7
内核:Linux 3.10.0-1062.el7.x86_64
架构:x86-64
php版本:PHP7.4.1RC1第一次通知;PHP7.4.1尚未发布 已安装:php-cli-7.4.1~RC1-1.el7.remi.x86_64(@remi模块化测试) 不应启用此存储库(仅适用于可能希望在EL-7上使用模块的DNF用户) 显然,您不需要提供较旧PHP版本的存储库
yum-config-manager --disable remi-php55
yum-config-manager --disable remi-php56
yum-config-manager --disable remi-php70
yum-config-manager --disable remi-php71
yum-config-manager --disable remi-php72
yum-config-manager --disable remi-php73
由于您有7.4.1~RC1,您需要启用remi-php74-test
yum-config-manager --enable remi-php74-test
yum install php-devel
如果您更喜欢稳定版本(目前为7.4.0)
正如专家所解释的那样
注意:php-devel包通常需要构建一个扩展,最常见的扩展在同一个存储库中以RPM的形式提供,请参阅
yum安装php-
对于PHP7.2,这对我很有用(注意remi-php72)
这回答了你的问题吗?“yum install php devel”centos7-->完成依赖项解析后,我收到此错误错误错误:包:gcc-4.8.5-39.el7.x86_64(基本)需要:cpp=4.8.5-39.el7已安装:cpp-5.1.1-4.fc23.x86_64(@warning:fedora)cpp=5.1.1-4.fc23可用:cpp-4.8.5-39.el7.x86_64(基本)cpp=4.8.5-39.el7 cpp=4.8.2-16.el7您的安装看起来很混乱,centos 7上安装了fedora软件包(fc23)。。。
yum-config-manager --enable remi-php74-test
yum install php-devel
yum-config-manager --enable remi-php74
yum remove php-common
yum install php-devel
yum install php-<extension_name>
sudo yum --enablerepo=remi,remi-php72 install php-devel autoconf automake