系统相关
首页 > 系统相关> > php – 要启用扩展,请验证它们是否已在这些.ini文件中启用 – Vagrant / Ubuntu / Magento 2.0.2

php – 要启用扩展,请验证它们是否已在这些.ini文件中启用 – Vagrant / Ubuntu / Magento 2.0.2

作者:互联网

通过composer安装Magento 2.0.2时出现此错误:

Problem 1
 - Installation request for magento/product-enterprise-edition 2.0.2 -> satisfiable by magento/product-enterprise-edition[2.0.2].
 - magento/product-enterprise-edition 2.0.2 requires ext-gd * -> the requested PHP extension gd is missing from your system.

To enable extensions, verify that they are enabled in those .ini files:

- /etc/php5/cli/php.ini
- /etc/php5/cli/conf.d/05-opcache.ini
- /etc/php5/cli/conf.d/10-pdo.ini
- /etc/php5/cli/conf.d/20-curl.ini
- /etc/php5/cli/conf.d/20-imap.ini
- /etc/php5/cli/conf.d/20-json.ini
- /etc/php5/cli/conf.d/20-mcrypt.ini
- /etc/php5/cli/conf.d/20-pdo_pgsql.ini
- /etc/php5/cli/conf.d/20-pgsql.ini
- /etc/php5/cli/conf.d/20-pspell.ini
- /etc/php5/cli/conf.d/20-readline.ini

You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

我已经安装了php5-cli,php5-curl.

解决方法:

首先安装sudo apt-get install php5-gd,然后sudo apt-get install php5-intl,最后一个是sudo apt-get install php5-xsl.
在那之后,它正在安装它应该.

标签:magento2,php,ubuntu,composer-php
来源: https://codeday.me/bug/20191004/1853294.html