centOS 7 Can't install php-mbstring extension

KrqcS picture KrqcS · Feb 26, 2015 · Viewed 82.6k times · Source

i've tried to install the extension mbstring but i have the following error:

    Error: Package: php-mbstring-5.4.16-23.el7_0.3.x86_64 (updates)
        Requires: php-common(x86-64) = 5.4.16-23.el7_0.3
        Installed: php-common-5.4.38-1.el7.remi.x86_64 (@remi)
        php-common(x86-64) = 5.4.38-1.el7.remi
        Available: php-common-5.4.16-21.el7.x86_64 (base)
        php-common(x86-64) = 5.4.16-21.el7
        Available: php-common-5.4.16-23.el7_0.x86_64 (updates)
        php-common(x86-64) = 5.4.16-23.el7_0
        Available: php-common-5.4.16-23.el7_0.1.x86_64 (updates)
        php-common(x86-64) = 5.4.16-23.el7_0.1
        Available: php-common-5.4.16-23.el7_0.3.x86_64 (updates)
        php-common(x86-64) = 5.4.16-23.el7_0.3
    You could try using --skip-broken to work around the problem
    You could try running: rpm -Va --nofiles --nodigest

What could i do to resolve the problem ?

Thanks for your help

Answer

KrqcS picture KrqcS · Feb 26, 2015

For people who want to know how to solve this :

sudo yum remove php-common

Then you can:

sudo yum install php-mbstring

It will automaticcaly install dependecies (php-common)