【问题标题】:Install mailparse on Debian GNU/Linux 9在 Debian GNU/Linux 9 上安装 mailparse
【发布时间】: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


【解决方案1】:

嗨,我终于得到了答案,这是我的脚本:

pecl install mailparse

然后放到ini文件中

echo 'extension=mailparse.so' >> /usr/local/etc/php/conf.d/mailparse.ini;

现在只需重新启动所有 php-fpm、Web 服务器等。

【讨论】:

    猜你喜欢
    • 2022-01-24
    • 2018-03-07
    • 2018-06-03
    • 2010-10-10
    • 2023-03-21
    • 1970-01-01
    • 1970-01-01
    • 2018-07-09
    • 2020-07-06
    相关资源
    最近更新 更多