centos 安裝mbstring(mb_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加上本版號,即可。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM