Linker Error Installing Laravel: Is "mbstring" Missing?

I decided to try Laravel and I continued to work with the installation due to how tedious it is compared to OOP PHP.

However, I try to execute the larvel / laravel -prefer-dist 'composer create-project command on my cmd (. ~ / Wamp / www /) and it created the Laravel folder, but gives me this result:

*Installing laravel/laravel (v5.1.4) - Installing laravel/laravel (v5.1.4) Loading from cache Created project in C:\wamp\www\laravel > php -r "copy('.env.example', '.env');" Loading composer repositories with package information Installing dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/framework v5.1.8 requires ext-mbstring * -> the requested PHP exte nsion mbstring is missing from your system. - laravel/framework v5.1.7 requires ext-mbstring * -> the requested PHP exte nsion mbstring is missing from your system. - laravel/framework v5.1.6 requires ext-mbstring * -> the requested PHP exte nsion mbstring is missing from your system. - laravel/framework v5.1.5 requires ext-mbstring * -> the requested PHP exte nsion mbstring is missing from your system. - laravel/framework v5.1.4 requires ext-mbstring * -> the requested PHP exte nsion mbstring is missing from your system. - laravel/framework v5.1.3 requires ext-mbstring * -> the requested PHP exte nsion mbstring is missing from your system. - laravel/framework v5.1.2 requires ext-mbstring * -> the requested PHP exte nsion mbstring is missing from your system. - laravel/framework v5.1.1 requires ext-mbstring * -> the requested PHP exte nsion mbstring is missing from your system. - laravel/framework v5.1.0 requires ext-mbstring * -> the requested PHP exte nsion mbstring is missing from your system. - Installation request for laravel/framework 5.1.* -> satisfiable by laravel /framework[v5.1.0, v5.1.1, v5.1.2, v5.1.3, v5.1.4, v5.1.5, v5.1.6, v5.1.7, v5.1. 8]. C:\wamp\www>* 

I use windows.

I tried to install a new composer, I tried to copy the laravel directory and put it in my / www manually.

I made sure that WAMP uses all modules and extensions according to what I read.

I edited the php.ini file and, if necessary, took half-columns.

And now, after a short search on Google, I'm lost.

Can someone help me with this problem, please, I would appreciate it.

Thanks in advance!

Below is my PHP.ini file

So I couldn’t insert all this, but take a look at it here:

http://jpst.it/AAhW

+3
source share
3 answers

I had the same problem. Here is the solution.

  • Go to the php.ini file.
  • Find the extension "extension = php_mbstring.dll". (ctrl + f may not work, just find a long list with extensions in php.ini)
  • Uncomment the extension by doing this, removing the semicolon on the same line.
  • Save the php.ini file.

It probably won't be the last time you come across something like this. As a rule, carefully read the error and make the appropriate changes to the php.ini file.

Good luck

+18
source

Install php-mbstring with

 sudo apt-get install php-mbstring 

must fix it.

+4
source

There are several errors when I tried to install on my Linux machine:

  • laravel / framework v5.4.9 requires ext-mbstring * β†’ the requested PHP version of mbstring is not on your system.
  • phpunit / phpunit 5.7.9 requires that ext-dom * β†’ the requested php dom extension is missing on your system.

sudo apt-get install php-mbstring

sudo apt-get install php-dom

In short, the whole mistake is like

  • jenssegers / mongodb v3.2.0 requires mongodb / mongodb ^ 1.0.0 β†’ doable mongodb / mongodb [1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.1.0, 1.1. 1, 1.1.2].
    • jenssegers / mongodb v3.2.1 requires mongodb / mongodb ^ 1.0.0 β†’ doable mongodb / mongodb [1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.1.0, 1.1. 1, 1.1.2].
    • jenssegers / mongodb v3.2.2 requires mongodb / mongodb ^ 1.0.0 β†’ doable mongodb / mongodb [1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.1.0, 1.1. 1, 1.1.2].
    • mongodb / mongodb 1.1.2 requires ext-mongodb ^ 1.2.0 -> the requested php mongodb extension is missing on your system.

you can simply run the following commands:

sudo apt-get install php - *

thanks

+2
source

Source: https://habr.com/ru/post/1236887/


All Articles