我从 Composer 那里收到的错误消息是:
您的要求无法解决为一组可安装的软件包。
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].
我尝试取消注释extension = php_mbstring.dll,但仍会引发错误。我试图更改“php.ini”中的extension_dir,但它给出了一个错误。感谢您的帮助。
最佳答案
-根据新信息进行编辑-
由于这是Windows,因此应该重新安装PHP,在PHP.INI文件中启用扩展名,然后重新启动Web服务器。
-LINUX的先前解决方案-
您需要为php安装mbstring。
用:
sudo apt-get install phpX.X-mbstring
其中X.X是您的PHP版本号。
关于php - 您的系统缺少所请求的PHP扩展名mbstring,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/44891013/