【发布时间】:2019-06-17 08:55:24
【问题描述】:
亲爱的大家在安装 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
任何帮助将不胜感激。
谢谢
【问题讨论】:
-
你试过
apt-get install php-mailparse ; phpenmod mailparse吗?您可能还需要重新启动 apache。 -
嗨伙计,我用 PECL 代替,现在修复了
标签: php laravel-5 composer-php