Я попытался установить PHP пакет mbstring
в PHP 7.0.14 с помощью этой команды:Как установить mbstring в PHP 7.0.14?
yum install php70w-mbstring php70w-json php70w-gd php70w-mcrypt
я получаю уведомление:
Установка 4 пакетов (+2 Зависимые пакеты)
Total size: 2.0 M
Installed size: 13 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
И дальнейшая ошибка:
Transaction check error: file /etc/php.ini from install of php70w-common-7.0.14-1.w7.x86_64 conflicts with file from package php70u-common-7.0.14-1.ius.centos7.x86_64 file /usr/lib64/php-zts/modules/bz2.so from install of php70w-common-7.0.14-1.w7.x86_64 conflicts with file from package php70u-common-7.0.14-1.ius.centos7.x86_64 file /usr/lib64/php/modules/bz2.so from install of php70w-common-7.0.14-1.w7.x86_64 conflicts with file from package php70u-common-7.0.14-1.ius.centos7.x86_64 file /usr/lib64/php-zts/modules/calendar.so from install of php70w-common-7.0.14-1.w7.x86_64 conflicts with file from package php70u-common-7.0.14-1.ius.centos7.x86_64 file /usr/lib64/php/modules/calendar.so from install of php70w-common-7.0.14-1.w7.x86_64 conflicts with file from package php70u-common-7.0.14-1.ius.centos7.x86_64 file /usr/lib64/php-zts/modules/ctype.so from install of php70w-common-7.0.14-1.w7.x86_64 conflicts with file from package php70u-common-7.0.14-1.ius.centos7.x86_64 file /usr/lib64/php/modules/ctype.so from install of php70w-common-7.0.14-1.w7.x86_64 conflicts with file from package php70u-common-7.0.14-1.ius.centos7.x86_64 file /usr/lib64/php-zts/modules/curl.so from install of php70w-common-7.0.14-1.w7.x86_64 conflicts with file from package php70u-common-7.0.14-1.ius.centos7.x86_64 file /usr/lib64/php/modules/curl.so from install of php70w-common-7.0.14-1.w7.x86_64 conflicts with file from package php70u-common-7.0.14-1.ius.centos7.x86_64 file /usr/lib64/php-zts/modules/exif.so from install of php70w-common-7.0.14-1.w7.x86_64 conflicts with file from package php70u-common-7.0.14-1.ius.centos7.x86_64 file /usr/lib64/php/modules/exif.so from install of php70w-common-7.0.14-1.w7.x86_64 conflicts with file from package php70u-common-7.0.14-1.ius.centos7.x86_64 file /usr/lib64/php-zts/modules/fileinfo.so from install of php70w-common-7.0.14-1.w7.x86_64 conflicts with file from package php70u-common-7.0.14-1.ius.centos7.x86_64 file /usr/lib64/php/modules/fileinfo.so from install of php70w-common-7.0.14-1.w7.x86_64 conflicts with file from package php70u-common-7.0.14-1.ius.centos7.x86_64 file /usr/lib64/php-zts/modules/ftp.so from install of php70w-common-7.0.14-1.w7.x86_64 conflicts with file from package php70u-common-7.0.14-1.ius.centos7.x86_64 file /usr/lib64/php/modules/ftp.so from install of php70w-common-7.0.14-1.w7.x86_64 conflicts with file from package php70u-common-7.0.14-1.ius.centos7.x86_64 file .... ...
Error Summary
Я использую Sorry, I use CentOS Linux release 7.3.1611
Как исправить это и установить mbstring?
Я использовал команду yum list php7*
, чтобы отобразить все доступные пакеты под моим PHP verison:
Available Packages Name : php70-php-mbstring Arch : x86_64 Version : 7.0.14 Release : 1.el7.remi Size : 524 k Repo : remi-safe Summary : A module for PHP applications which need multi-byte string handling URL : http://www.php.net/ License : PHP and LGPLv2 and BSD and OpenLDAP Description : The php70-php-mbstring package contains a dynamic shared object that will add : support for multi-byte string handling to PHP.
После того как я сделал:
yum install php70-php-mbstring
И получите:
Installing:
php70-php-mbstring x86_64 7.0.14-1.el7.remi remi-safe 524 k
Важное замечание:
Error: php70u-common conflicts with php-common-5.4.16-42.el7.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest