php - 如何在 CentOS 6.2 上安装 PHP mbstring

标签 php linux centos mbstring

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

我试过了:

$ 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行(在行前放一个#),然后在新行上写:

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

现在试试:

yum install php-mbstring

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

关于php - 如何在 CentOS 6.2 上安装 PHP mbstring,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10278561/

相关文章:

java - 在 linux lubuntu 上调用任何 java.nio 方法时没有遇到这样的方法异常

linux - 当位置存储在变量中时,为什么 bash 找不到文件?

mongodb - 使用 mongod.conf 时,Mongo auth 无法登录

shell - 按端口查找进程

php - 函数 : Database connection in function or pass it as argument? 的最佳情况是什么

linux - Fortran 在锁定环境中的基本单元测试

php - 未返回 IPN 变量

linux - 如何在linux(Centos 7)中配置vnc服务器?

php - uasort 问题 - 首先输出最大值

php - 强大的 CMS 的骨架是什么