Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
878 views
in Technique[技术] by (71.8m points)

php - How to install mbstring extension

When I installed mbstring in Centos, I got the following error message.

# yum install php-mbstring
Loaded plugins: downloadonly, fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirror.vastspace.net
 * epel: ftp.riken.jp
 * extras: mirror.vastspace.net
 * updates: mirror.vastspace.net
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
--> Finished Dependency Resolution
Error: Package: php-mbstring-5.3.3-40.el6_6.x86_64 (updates)
           Requires: php-common(x86-64) = 5.3.3-40.el6_6
           Installed: php-common-5.4.35-1.el6.remi.x86_64 (@remi)
               php-common(x86-64) = 5.4.35-1.el6.remi
           Available: php-common-5.3.3-38.el6.x86_64 (base)
               php-common(x86-64) = 5.3.3-38.el6
           Available: php-common-5.3.3-40.el6_6.x86_64 (updates)
               php-common(x86-64) = 5.3.3-40.el6_6
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Anyone can tell me how I can install mbstring ??

My PHP version : PHP 5.4.35 (cli) (built: Nov 14 2014 07:04:10) on Centos 6.6

Thank you in advance...

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
yum install php-mbstring --enablerepo=remi

I installed php-mbstring using remi with this command. After running that, Restarting Apache service is required.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...