首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Debian GNU/Linux 9上安装mailparse

在Debian GNU/Linux 9上安装mailparse
EN

Stack Overflow用户
提问于 2019-06-17 16:55:25
回答 1查看 739关注 0票数 0

亲爱的所有人在安装Laravel 5.3项目时遇到以下错误:

代码语言:javascript
复制
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:

代码语言:javascript
复制
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版本

代码语言:javascript
复制
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

任何帮助都将不胜感激。

谢谢

EN

回答 1

Stack Overflow用户

发布于 2019-06-17 18:00:58

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

代码语言:javascript
复制
pecl install mailparse

然后把它放到ini文件中

代码语言:javascript
复制
echo 'extension=mailparse.so' >> /usr/local/etc/php/conf.d/mailparse.ini;

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

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56627931

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档