如何在 CentOS 6.2 上安装 PHP mbstring [英] How to install PHP mbstring on CentOS 6.2
本文介绍了如何在 CentOS 6.2 上安装 PHP mbstring的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在 CentOS 6.2 上使用 PHP 安装 mbstring
How do I install mbstring with PHP on CentOS 6.2
我试过了:
$ sudo yum install php-mbstring
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: mirror.net.cen.ct.gov
* extras: centos.aol.com
* updates: mirrors.seas.harvard.edu
Setting up Install Process
No package php-mbstring available.
Error: Nothing to do
但是没有找到包?
推荐答案
执行以下操作:
sudo nano /etc/yum.repos.d/CentOS-Base.repo
在 updates
部分下,注释掉 mirrorlist 行(在该行前面放一个 #
),然后在新行上写:
under the section updates
, comment out the mirrorlist line (put a #
in front of the line), then on a new line write:
baseurl=http://centos.intergenia.de/$releasever/updates/$basearch/
现在尝试:
yum install php-mbstring
(之后您可能想要取消对镜像列表的注释并注释掉 baseurl)
(afterwards you'll probably want to uncomment the mirrorlist and comment out the baseurl)
这篇关于如何在 CentOS 6.2 上安装 PHP mbstring的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文