To enable extensions, verify that they are enabled in those .ini files - Vagrant/Ubuntu/Magento 2.0.2

后端 未结 18 538
别那么骄傲
别那么骄傲 2020-12-24 06:02

When installing Magento 2.0.2 via composer getting this error:

Problem 1
 - Installation request for magento/product-enterprise-edition 2.0.2 -> satisfiab         


        
相关标签:
18条回答
  • 2020-12-24 06:15

    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 is installing as it should.

    0 讨论(0)
  • 2020-12-24 06:15

    Gonna post this answer here after seeing some of the answers (including the accepted one) which claim to "do the trick". First, we need to identify the issue before fixing it.

    the requested PHP extension gd is missing from your system.

    As the above line clearly states, we need to install the extension php-gd.

    So, we can go with sudo apt install php<version>-gd and it should fix this error unless the system needs more extensions which happens to be the exact case here in the system in question. It needs a couple more extensions php-intl and php-xsl. So let it be mbstring or mcrypt, you should install whatever the extensions your system is missing. How can you find what is missing? Just read the error message, it is there.

    0 讨论(0)
  • 2020-12-24 06:17

    The exact name of the extension depends on the repository from which you got PHP but look here. For example on CentOS:

    yum install -y php56w php56w-opcache php56w-xml php56w-mcrypt php56w-gd php56w-devel php56w-mysql php56w-intl php56w-mbstring php56w-bcmath

    0 讨论(0)
  • 2020-12-24 06:18
    1. Open the xampp/php/php.ini file in any editor
    2. Search ";extension=php_intl.dll"
    3. Remove the starting semicolon ( ; )

      Like: ;extension=php_intl.dll to extension=php_intl.dll

    This helped me.

    0 讨论(0)
  • 2020-12-24 06:21

    On Ubuntu 16.04 php7 is now the default, so if you follow the top answers and are still having this issue, check your php version.

    php --version
    

    If your default php version is php7, but you followed an answer using php5 packages, you can use the following command to set the default version of php to php5.6:

    sudo update-alternatives --set php $(which php5.6)
    
    0 讨论(0)
  • 2020-12-24 06:22

    This was the fix for me when trying to install Laravel on a fresh WSL installation:

    sudo apt-get install php7.2-gd

    sudo apt-get install php7.2-intl

    sudo apt-get install php7.2-xsl

    sudo apt-get install php7.2-zip

    0 讨论(0)
提交回复
热议问题