部署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加上本版号,即可。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。