0

我是 Laravel 的新手。我想作曲家安装代码,但我得到了错误。有谁知道如何解决它?

 Problem 1
    - Root composer.json requires php-mime-mail-parser/php-mime-mail-parser ^7.0 -> satisfiable by php-mime-mail-parser/php-mime-mail-parser[7.0.0].
    - php-mime-mail-parser/php-mime-mail-parser 7.0.0 requires ext-mailparse * -> it is missing from your system. Install or enable PHP's mailparse extension.

To enable extensions, verify that they are enabled in your .ini files:
    - D:\wamp64\bin\php\php7.3.21\php.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
4

1 回答 1

0

mailparse 扩展还不支持 PHP 7.3 或 7.4。

您需要更改您的 PHP 版本

https://serverpilot.io/docs/how-to-install-the-php-mailparse-extension/

在 PHP 7.0、7.1 或 7.2 上安装 Mailparse 要在 PHP 7.X 上安装此扩展,请以 root 身份通过 SSH 连接到您的服务器并运行以下命令:

sudo apt-get -y install gcc make autoconf libc-dev pkg-config
sudo pecl7.X-sp install --nodeps mailparse
sudo bash -c "echo extension=mailparse.so > /etc/php7.X-sp/conf.d/mailparse.ini"
sudo service php7.X-fpm-sp restart
于 2021-10-06T11:48:48.243 回答