Problem phenomenon:
[Root@localhost magento2]# pwd
/home/wwwroot/default/magento2
[Root@localhost magento2]# Composer Install
Loading Composer repositories with the package information
Installing dependencies (including Require-dev) from lock file
Warning:the lock file is a not-to-date with the latest changes in Composer.json. Getting outdated dependencies. Run Update to
Update them.
Your requirements could not being 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.
Solve the problem:
Enter cd/home/freeman/tools/lnmp1.2-full/src/php-5.6.9/ext/intl/
Execute $phpize &&./configure--with-php-c/local/php/bin/php-config && make && make install
In this configure process will be error, install the appropriate LIB on the line.
$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 && make install
Modify PHP.ini
$vi/usr/local/php/etc/php.ini
Increase:
Extension=xsl.so
Extension=intl.so
Then restart the PHP service/etc/init.d/php-fpm restart
Go back to/home/wwwroot/magento2 and execute it.
$composer Install
[Root@localhost magento2]# Composer Install
Loading Composer repositories with the 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%
This will be a success.
The above describes how to solve the Magento2 installation process is missing two PHP extension problems: Ext-intl and ext-xsl, including aspects of the content, I hope to be interested in PHP tutorial friends helpful.