无法为php 7.4.1安装php-devel [英] cant install php-devel for php 7.4.1

查看:112
本文介绍了无法为php 7.4.1安装php-devel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我输入以下内容时,我无法安装php-devel:

i cannot install php-devel, when i enter:

  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

h应该解决这个问题吗?谢谢

how to resolve this issue? thanks

操作系统:CentOS Linux 7(核心)
CPE OS名称:cpe:/ o:centos:centos:7
内核:Linux 3.10.0-1062.el7.x86_64
体系结构:x86-64
php版本:PHP 7.4.1RC1

Operating System: CentOS Linux 7 (Core) CPE OS Name: cpe:/o:centos:centos:7 Kernel: Linux 3.10.0-1062.el7.x86_64 Architecture: x86-64 php version: PHP 7.4.1RC1

推荐答案

第一条通知; PHP 7.4.1尚未发布。

First notice; PHP 7.4.1 is not yet release.


已安装:php-cli-7.4.1〜RC1-1.el7.remi.x86_64 (@ remi-modular-test)

Installed: php-cli-7.4.1~RC1-1.el7.remi.x86_64 (@remi-modular-test)

不应启用此存储库(仅适用于可能要在EL上使用模块的DNF用户-7)

This repository should not be enabled (only for DNF users who may want to use modules on EL-7)

yum-config-manager --disable remi-modular-test

您显然不需要提供较旧PHP版本的存储库

And you obviously don't need the repositories providing older PHP versions

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

As you have 7.4.1~RC1 you need to enable remi-php74-test

yum-config-manager --enable remi-php74-test
yum install php-devel

如果您喜欢稳定的版本on(目前为7.4.0)

And if you prefer the stable version (7.4.0 for now)

yum-config-manager --enable remi-php74
yum remove php-common
yum install php-devel

向导

注意: php-devel 软件包通常需要构建扩展,并且大多数常见扩展都可以在同一存储库中以RPM形式获得,请参见完整列表

Notice: the php-devel package is usually need to build an extension, and most common extensions are available as RPM in the same repository, see the full list.

yum install php-<extension_name>

这篇关于无法为php 7.4.1安装php-devel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆