php - 无法为 php 7.4.1 安装 php-devel

标签 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: 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版本:PHP 7.4.1RC1

最佳答案

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

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



不应启用此存储库(仅适用于可能想要在 EL-7 上使用模块的 DNF 用户)
yum-config-manager --disable remi-modular-test

而且您显然不需要提供旧 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)
yum-config-manager --enable remi-php74
yum remove php-common
yum install php-devel

正如 Wizard 所解释的那样.

通知: php开发 package 通常需要构建一个扩展,大多数常见的扩展在同一个存储库中以 RPM 的形式提供,见 the full list .
yum install php-<extension_name>

关于php - 无法为 php 7.4.1 安装 php-devel,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59318507/

相关文章:

php - mysql连接服务器错误

c - 错误 : conflicting types for ‘atoll’

python - Python 包上的 SSL 错误

c# - Azure 环境上的 ConfigurationManager

python - python Web浏览器中的400错误请求

asp.net - 如何使用 Membership ValidatePassword 事件处理程序?

php - 在减法之前检查变量是否存在的最佳方法?

php - 检索帖子数组值

php - 上传多个文件到服务器 : getting PHP code wrong

java - 通过 java 将文件从 Linux 服务器中的一个位置复制到另一个位置的最佳方法