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

To enable extensions, verify that they are enabled in those .ini files - Vagrant/Ubuntu/Magento 2.0.2(要启用扩展,请验证它们是否已在这些 .ini 文件中启用 - Vagrant/Ubuntu/Magento 2.0.2)
本文介绍了要启用扩展,请验证它们是否已在这些 .ini 文件中启用 - Vagrant/Ubuntu/Magento 2.0.2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

When installing Magento 2.0.2 via composer getting this error:

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.

I have installed php5-cli, php5-curl.

推荐答案

先安装sudo apt-get install php5-gd,再sudo apt-get install php5-intl 最后一个是 sudo apt-get install php5-xsl.之后,它就可以正常安装了.

First installed sudo apt-get install php5-gd, then sudo apt-get install php5-intl and last one was sudo apt-get install php5-xsl. After that, it's installing as it should.

这篇关于要启用扩展,请验证它们是否已在这些 .ini 文件中启用 - Vagrant/Ubuntu/Magento 2.0.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Connecting to Gmail through IMAP with PHP - SSL context failed(使用 PHP 通过 IMAP 连接到 Gmail - SSL 上下文失败)
How can I get PHP to compile a LaTeX document if it (www-data) can#39;t get access to the required packages?(如果 (www-data) 无法访问所需的包,我如何让 PHP 编译 LaTeX 文档?)
PHPUnit , PEAR upgrading Errors(PHPUnit , PEAR 升级错误)
How do I run all my PHPUnit tests?(如何运行我所有的 PHPUnit 测试?)
PHP+Ubuntu Send email using gmail form localhost(PHP+Ubuntu 使用 gmail 形式发送电子邮件 localhost)
Undefined function mysql_connect()(未定义函数 mysql_connect())