简体   繁体   中英

CentOS install php-mbstring error

I am trying to install mbstring on CentOS 6.7 with PHP version 7 :

yum --enablerepo=remi install php-mbstring

, but I get this error:

php70w-common conflicts with 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. How can I fix this ?

That's not a remi package. His packages look like php-common , not php70w-common . You'll need to edit the /etc/yum.repos.d/remi.repo and enable the PHP 7 repo for his site.

Once you've done that, identify which repo is feeding you php70w files and exclude them.

PHP 7的php-mbstring不在“ remi”存储库中,而是在“ remi-php70”存储库中,请参见“ 配置向导”

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM