CentOS安装php-mbstring错误


CentOS install php-mbstring error

我试图在CentOS 6.7与PHP版本7上安装mbstring:

yum——enablerepo=remi install php-mbstring

,但是我得到这个错误:

php70w-common与php-common-5.4.45-11.el6.remi.x86_64冲突

CentOS是默认的PHP版本5.3(我认为),但在一个星期前我更新到PHP 7,现在,当我想安装mbstring我看到这个错误。

这不是一个remi包。他的包裹看起来像php-common,而不是php70w-common。您需要编辑/etc/yum.repos.d/remi.repo并为他的站点启用PHP 7 repo。

一旦你这样做了,确定哪个repo提供给你php70w文件,并排除它们。

php7的PHP -mbstring不在"remi"库中,而是在"remi-php70"库中,请参见配置向导