如何在CentOS 6.2上使用PHP安装mbstring


How do I install mbstring with PHP on CentOS 6.2

我安装yum-install php55w我尝试

# yum install php-mbstring
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirror.telepoint.bg
 * epel: mirrors.neterra.net
 * extras: mirror.telepoint.bg
 * updates: mirror.telepoint.bg
 * webtatic: uk.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package php-mbstring.x86_64 0:5.3.3-40.el6_6 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.3-40.el6_6 for package: php-mbstring-5.3.3-40.el6_6.x86_64
--> Running transaction check
---> Package php-common.x86_64 0:5.3.3-40.el6_6 will be installed
--> Processing Conflict: php55w-common-5.5.21-1.w6.x86_64 conflicts php-common < 5.5.0
--> Finished Dependency Resolution
Error: php55w-common conflicts with php-common-5.3.3-40.el6_6.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

每次我得到这个错误,无论我做什么。

如何解决

您尝试安装php55-mbstring了吗?因此:

yum install php55-mbstring