亲爱的所有人在安装Laravel 5.3项目时遇到以下错误:
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for php-mime-mail-parser/php-mime-mail-parser 2.11.1 -> satisfiable by php-mime-mail-parser/php-mime-mail-parser[2.11.1].
- php-mime-mail-parser/php-mime-mail-parser 2.11.1 requires ext-mailparse * -> the requested PHP extension mailparse is missing from your system.
To enable extensions, verify that they are enabled in your .ini files:
我的操作系统是Debian:
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
这是我的PHP版本
PHP 7.1.30 (cli) (built: Jun 11 2019 03:14:27) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.1.30, Copyright (c) 1999-2018, by Zend Technologies
with Xdebug v2.7.2, Copyright (c) 2002-2019, by Derick Rethans
任何帮助将不胜感激。
谢谢
答案 0 :(得分:1)
嗨,终于我得到了答案,这是我的脚本:
pecl install mailparse
然后将其放在ini文件中
echo 'extension=mailparse.so' >> /usr/local/etc/php/conf.d/mailparse.ini;
现在只需重新启动所有php-fpm,Web服务器等。