簡體   English   中英

無法為 php 7.4.1 安裝 php-devel

[英]cant install php-devel for php 7.4.1

當我輸入時,我無法安裝 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 (Core) 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 尚未發布。

安裝: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

正如向導所解釋的那樣。

注意: php-devel包通常需要構建一個擴展,大多數常見的擴展在同一個存儲庫中作為 RPM 可用,請參閱完整列表

yum install php-<extension_name>

對於 PHP 7.2,這對我有用(注意remi-php72

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM