The requested PHP mbstring extension is missing from your system

my error message that I am getting from composer: Your requirements cannot be resolved to the set of packages being installed.

 Problem 1
    - Installation request for laravel/framework v5.4.28 -> satisfiable by laravel/framework[v5.4.28].
    - laravel/framework v5.4.28 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
  Problem 2
    - Installation request for phpunit/phpunit 5.7.21 -> satisfiable by phpunit/phpunit[5.7.21].
    - phpunit/phpunit 5.7.21 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
  Problem 3
    - laravel/framework v5.4.28 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
    - laravel/tinker v1.0.1 requires illuminate/console ~5.1 -> satisfiable by laravel/framework[v5.4.28].
    - Installation request for laravel/tinker v1.0.1 -> satisfiable by laravel/tinker[v1.0.1].

      

I tried uncommenting extension = php_mbstring.dll but it still throws an error. I tried to change extension_dir in "php.ini" and it gives an error. Help is appreciated.

+3


source to share


1 answer


- EDIT TO NEW INFORMATION -

Since this is Windows, you must reinstall PHP by enabling the extension in the PHP.INI file and restarting the web server.

- PREVIOUS SOLUTION FOR LINUX -

You need to install mbstring for php.



Using:

 sudo apt-get install phpX.X-mbstring

      

Where XX is your PHP version number.

+7


source







All Articles