: This article mainly introduces how to solve the problem of two php extensions missing during magento2 installation: ext-intl and ext-xsl. if you are interested in the PHP Tutorial, refer to it.
Symptom:
[Root @ localhost magento2] # pwd
/Home/wwwroot/default/magento2
[Root @ localhost magento2] # composer install
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
Update them.
Your requirements cocould not be resolved to an installable set of packages.
Problem 1
-The requested PHP extension ext-intl * is missing from your system. Install or enable PHP's intl extension.
Problem 2
-The requested PHP extension ext-xsl * is missing from your system. Install or enable PHP's xsl extension.
Solution:
Go to cd/home/freeman/tools/lnmp1.2-full/src/php-5.6.9/ext/intl/
Run $ phpize &./configure -- with-php-c/local/php/bin/php-config & make install
In this configure process, an error will occur. just install the corresponding lib.
$ Yum install libicu-devel-y
$ Yum install libxslt-devel-y
Cd/home/freeman/tools/lnmp1.2-full/src/php-5.6.9/ext/xsl/
$ Phpize &./configure -- with-php-c/local/php/bin/php-config & make install
Modify php. ini
$ Vi/usr/local/php/etc/php. ini
Added:
Extension = xsl. so
Extension = intl. so
Restart the php service/etc/init. d/php-fpm restart.
Return to/home/wwwroot/magento2 and execute
$ Composer install
[Root @ localhost magento2] # composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
-Installing magento/magento-composer-installer (0.1.5)
Downloading: 100%
-Installing braintree/braintree_php (2.39.0)
Downloading: 100%
In this way, the operation is successful.
The above describes how to solve the problem of two php extensions missing during magento2 installation: ext-intl and ext-xsl, including the following content, if you are interested in PHP tutorials.