繁体   English   中英

php-mbstring不会安装在CentOS 7和PHP 7.1.21上

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM