yum install php php-devel,cant install php-devel for php 7.4.1

问题

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

how to resolve this issue? thanks

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

回答1:

First notice; PHP 7.4.1 is not yet release.

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

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

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

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

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

As explained by the Wizard.

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-

回答2:

For PHP 7.2 this worked for me (notice the remi-php72 )

sudo yum --enablerepo=remi,remi-php72 install php-devel autoconf automake

来源:https://stackoverflow.com/questions/59318507/cant-install-php-devel-for-php-7-4-1

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值