RHEL系的 用YUM INTSALL PHP-MBSTRING 会报错! 代码如下: [root@xxx yum]# YUM INTSALL PHP-MBSTRING -bash: YUM: command not found [root@xxx yum]# yum install PHP-MBSTRING Loading "installonlyn" plugin Loading "rhnplugin" plugin This system is not registered with RHN. RHN support will be disabled. Setting up Install Process Setting up repositories No Repositories Available to Set Up Reading repository metadata in from local files Parsing package install arguments Setting up repositories No Repositories Available to Set Up Reading repository metadata in from local files No Match for argument: PHP-MBSTRING Nothing to do
我的mbstring功能是系统自带的mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.
会报错!
代码如下:
[root@xxx yum]# YUM INTSALL PHP-MBSTRING
-bash: YUM: command not found
[root@xxx yum]# yum install PHP-MBSTRING
Loading "installonlyn" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
Parsing package install arguments
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
No Match for argument: PHP-MBSTRING
Nothing to do
$:cd /5.1.6/ext/mbstring
$:/usr/local/php/bin/phpize
$:./configure --with-php-config=/usr/local/php/bin/php-config
$:sudo make
$:sudo make install
SO文件就出来了。
你就在官方去下载个mbstring.so放到extension_dir去好了.这个是rpm安装的
http://rpm.pbone.net/index.php3/stat/3/limit/5/srodzaj/1/dl/40/search/mbstring.so/field%5B%5D/1/field%5B%5D/2
再裝一次PHP,就行啦