【发布时间】:2019-06-04 20:21:32
【问题描述】:
需要在运行 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
有什么想法吗?
【问题讨论】:
-
这个是找到安装php-mbstring解决方案的链接:[centOS 7 Can't install php-mbstring extension][1] [1]:http://%20%20% 20https://stackoverflow.com/questions/28739892/centos-7-cant-install-php-mbstring-extension/54705183#54705183