我正在尝试安装composer安装的laravel项目,但作为回报,它会给出以下错误。
Problem 1
- Installation request for laravel/framework v7.14.1 -> satisfiable by laravel/framework[v7.14.1].
- laravel/framework v7.14.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 2
- Installation request for league/commonmark 1.4.3 -> satisfiable by league/commonmark[1.4.3].
- league/commonmark 1.4.3 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 3
- Installation request for facade/ignition 2.0.6 -> satisfiable by facade/ignition[2.0.6].
- facade/ignition 2.0.6 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 4
- Installation request for mockery/mockery 1.4.0 -> satisfiable by mockery/mockery[1.4.0].
- mockery/mockery 1.4.0 requires php ^7.3.0 -> your PHP version (7.2.24) does not satisfy that requirement.
Problem 5
- Installation request for phpunit/phpunit 8.5.5 -> satisfiable by phpunit/phpunit[8.5.5].
- phpunit/phpunit 8.5.5 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 6
- Installation request for scrivo/highlight.php v9.18.1.1 -> satisfiable by scrivo/highlight.php[v9.18.1.1].
- scrivo/highlight.php v9.18.1.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 7
- laravel/framework v7.14.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- facade/flare-client-php 1.3.2 requires illuminate/pipeline ^5.5|^6.0|^7.0 -> satisfiable by laravel/framework[v7.14.1].
- Installation request for facade/flare-client-php 1.3.2 -> satisfiable by facade/flare-client-php[1.3.2].但是mbstring已经安装在php72中了。首先,我检查php --v的版本,然后它返回
PHP7.2.24
然后检查加载的模块php72 -m和有mbstring也没有问题.之后,我检查了mbstring是否已启用,php72 -i | grep mbstring是否已启用
启用mbstring
=>的多字节解码支持
最后,为什么作曲家没有看到mbstring?我检查composer show -p查看的模块。,不,,没有mbstring!知道为什么作曲家没有看到mbstring,以及我如何解决这个问题吗?
另外,我在Centos 7
发布于 2020-06-18 08:54:39
在php7.2中缺少mbstring扩展。
运行sudo apt-get install -y php7.2-mbstring
编辑
另外,嘲笑/嘲弄1.4.0需要php ^7.3.0。我建议升级您的项目php版本。
发布于 2020-06-18 09:21:47
日志本身就说明了问题。
laravel/framework v7.14.1需要ext-mbstring
league/commonmark 1.4.3需要ext-mbstring
外观/点火2.0.6需要ext-mbstring
phpunit/phpunit 8.5.5需要ext-mbstring
scrivo/HTFLIT.php v9.18.1.1需要ext-mbstring
尝试以下命令
yum install php-mbstring然后
作曲家更新
https://stackoverflow.com/questions/62445831
复制相似问题