[英]php-mbstring won't install on CentOS 7 and PHP 7.1.21
需要在運行PHP 7.1.21的CentOS 7服務器上安裝php-mbstring。 我已經花了數小時嘗試所有可能找到的解決方案。 嘗試使用remi repo進行安裝時似乎存在沖突。 無論我嘗試什么,我都能得到的最佳結果如下:
# yum install php-mbstring
Loaded plugins: fastestmirror, versionlock
Loading mirror speeds from cached hostfile
* base: mirror.steadfastnet.com
* epel: mirror.steadfastnet.com
* extras: mirror.steadfastnet.com
* remi-php71: mirror.team-cymru.com
* remi-safe: mirror.team-cymru.com
* updates: mirror.steadfastnet.com
base | 3.6 kB 00:00:00
extras | 3.4 kB 00:00:00
updates | 3.4 kB 00:00:00
Excluding 8 updates due to versionlock (use "yum versionlock status" to show them)
Resolving Dependencies
--> Running transaction check
---> Package php-mbstring.x86_64 0:7.1.26-1.el7.remi will be installed
--> Processing Dependency: php-common(x86-64) = 7.1.26-1.el7.remi for package: php-mbstring-7.1.26-1.el7.remi.x86_64
--> Finished Dependency Resolution
Error: Package: php-mbstring-7.1.26-1.el7.remi.x86_64 (remi-php71)
Requires: php-common(x86-64) = 7.1.26-1.el7.remi
Installed: php-common-7.1.21-1.el7.remi.x86_64 (@remi-php71)
php-common(x86-64) = 7.1.21-1.el7.remi
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
有什么想法嗎?
不包括由於版本鎖定引起的8個更新(使用“ yum版本鎖定狀態”顯示它們)
以上消息中的解釋。
當前版本為7.1.26時,您已安裝php版本7.1.21。
該存儲庫僅在線提供2個最新版本。 因此,您需要手動下載並安裝OLD軟件包: php-mbstring-7.1.21-1.el7.remi.x86_64.rpm
或者,最好刪除此版本的鎖。 “ remi-php71”存儲庫將始終提供7.1.x,並且您將僅收到新的次要版本。
PHP 7.1現在處於安全模式,而7.1.21受許多公共安全問題的影響。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.