php - 如何在 CentOS 6.2 上安装 PHP 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)

https://stackoverflow.com/questions/10278561/

相关文章:

python - 我可以在 pip 要求文件中添加注释吗?

linux - 是否在/usr/local/lib 中搜索共享库?

python - 如何在 Python 中将 dos 路径拆分为其组件

python - 目前在 Python 中进行 RPC 的选择是什么?

linux - fuse 错误 : Transport endpoint is not connec

python - Django 设置 ‘SECRET_KEY’ 的目的是什么?

python - 如何在 Python 中进行并行编程?

linux - Linux 上的 NuGet : Error getting response st

linux - 如何找到今天在 Unix/Linux 中创建的所有文件?

linux - svn over HTTP 代理