centos 安装mbstringmb_strlen

部署onethink框架的时候,检测到mb_strlen未支持

在网上检索一大堆教程,最多的就是先检测一下需要安装的安装包

yum search PHP

楼主小白满心欢喜地输入,一对照返回的结果,

心中千万只草泥马奔腾,命苦,和别人返回的不太一样,

根本就找不到需要安装的版本,于是楼主看了一下刚才的命令,

大胆推测一下,既然可以通过search PHP找到PHP相关的,

那么应该可以通过search PHP-mbstring更加精确地找到安装包的版本

于是在命令窗口输入:

yum search PHP-mbstring

返回:

Loaded plugins: fastestmirror,refresh-packagekit,security
Loading mirror speeds from cached hostfile
* base: mirrors.tuna.tsinghua.edu.cn
* epel: mirrors.tuna.tsinghua.edu.cn
* extras: mirrors.tuna.tsinghua.edu.cn
* updates: mirrors.tuna.tsinghua.edu.cn
* webtatic: sp.repo.webtatic.com
========================== N/S Matched: PHP-mbstring ===========================
PHP-mbstring.x86_64 : A module for PHP applications which need multi-byte string
: handling
老天果然不欺负老实人,于是就继续输入安装命令:

yum install PHP-mbstring.x86_64

果然,人还是不能高兴得太快,有错误~~~

Error: PHP55w-common conflicts with PHP-common-5.3.3-49.el6.x86_64
You Could try using --skip-broken to work around the problem
不过这个看的时候需要针对不同的机器,这个是因为本人之前有另外一个PHP版本所致,

之前安装gd库的时候就解决过了,故照样画葫芦:

yum install PHP55w-mbstring.x86_64

PHP加上本版号,即可。

相关文章

Centos下搭建性能监控Spotlight
CentOS 6.3下Strongswan搭建IPSec VPN
在CentOS6.5上安装Skype与QQ
阿里云基于centos6.5主机VPN配置
CentOS 6.3下配置multipah
CentOS安装、配置APR和tomcat-native