亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

無法為 php 7.4.1 安裝 php-devel

無法為 php 7.4.1 安裝 php-devel

PHP
狐的傳說 2022-06-17 10:06:44
當我輸入時,我無法安裝 php-devel:  yum install php-develResolving 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 ResolutionError: 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)如何解決這個問題?謝謝操作系統: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
查看完整描述

2 回答

?
白板的微信

TA貢獻1883條經驗 獲得超3個贊

第一通知;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>


查看完整回答
反對 回復 2022-06-17
?
四季花海

TA貢獻1811條經驗 獲得超5個贊

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

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


查看完整回答
反對 回復 2022-06-17
  • 2 回答
  • 0 關注
  • 133 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號