如何在CentOS 6.2上安装PHP mbstring [英] How to install PHP mbstring on CentOS 6.2

查看:294
本文介绍了如何在CentOS 6.2上安装PHP mbstring的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在CentOS 6.2上使用PHP安装mbstring



我尝试过:

  $ sudo yum install php-mbstring 

加载的插件:fastestmirror,security
从缓存的hostfile加载镜像速度
* base:mirror.net.cen .ct.gov
* extras:centos.aol.com
*更新:mirrors.seas.harvard.edu
设置安装过程
无软件包php-mbstring可用。
错误:无需执行

但没有找到软件包?

 执行以下操作:

etc / yum.repos.d / CentOS-Base.repo

>更新,注释掉mirrorlist行(在行前放置一个),然后在一行写:

  baseurl = http://centos.intergenia.de/$releasever/updates/$basearch/ 



现在尝试:



yum install php-mbstring



(之后您可能想要取消注释镜像列表并注释掉baseurl)


How do I install mbstring with PHP on CentOS 6.2

I've tried:

$ 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

But no packages were found?

解决方案

do the following:

sudo nano /etc/yum.repos.d/CentOS-Base.repo

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/

now try:

yum install php-mbstring

(afterwards you'll probably want to uncomment the mirrorlist and comment out the baseurl)

这篇关于如何在CentOS 6.2上安装PHP mbstring的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆