[英]CentOS install php-mbstring error
I am trying to install mbstring on CentOS 6.7 with PHP version 7 : 我正在尝试在PHP版本7的CentOS 6.7上安装mbstring:
yum --enablerepo=remi install php-mbstring yum --enablerepo = remi安装php-mbstring
, but I get this error: ,但出现此错误:
php70w-common conflicts with php-common-5.4.45-11.el6.remi.x86_64 php70w-common与php-common-5.4.45-11.el6.remi.x86_64冲突
CentOS was with default PHP version 5.3 (I think), but before a week I updated it to PHP 7 and now, when I want to install mbstring I see this error. CentOS的默认PHP版本是5.3(我认为),但是一周前我将其更新为PHP 7,现在,当我想安装mbstring时,我看到了此错误。 How can I fix this ? 我怎样才能解决这个问题 ?
That's not a remi package. 那不是remi包。 His packages look like php-common
, not php70w-common
. 他的软件包看起来像php-common
,而不是php70w-common
。 You'll need to edit the /etc/yum.repos.d/remi.repo
and enable the PHP 7 repo for his site. 您需要编辑/etc/yum.repos.d/remi.repo
并为其站点启用PHP 7 repo。
Once you've done that, identify which repo is feeding you php70w
files and exclude them. 完成此操作后,确定哪个存储库可以为您提供php70w
文件,并排除它们。
PHP 7的php-mbstring不在“ remi”存储库中,而是在“ remi-php70”存储库中,请参见“ 配置向导” 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.