百胜安装php-mysql无法安装Centos [英] yum install php-mysql unable to install Centos
本文介绍了百胜安装php-mysql无法安装Centos的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在安装php-mysql时遇到困难,我执行以下操作:
I am having difficulty installing php-mysql, I do the following:
yum -y install php-mysql
但是得到以下信息:
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: centos.escapemg.com
* extras: mirror.chpc.utah.edu
* updates: mirrors.xmission.com
Setting up Install Process
No package php-mysql available.
Error: Nothing to do
我做了yum repolist disabled
并启用了yum-config-manager --enable C6.1-base
,但仍然保持相同的状态.没有可用的php-mysql软件包.
I did a yum repolist disabled
and enabled yum-config-manager --enable C6.1-base
but still keep getting the same No package php-mysql available.
推荐答案
我弄清楚了,看来/etc/yum.conf
中的mysql一旦有注释,就出现了exclude=mysql* php*
行,我能够yum install mysqlnd
.感谢所有
I figured it out, it appeared that mysql in /etc/yum.conf
there was a line exclude=mysql* php*
once I commented it out, I was able to yum install mysqlnd
. Thanks to everyone who
这篇关于百胜安装php-mysql无法安装Centos的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文