How to solve the problem that magento2 lacks two php extensions during installation: ext-intl and ext-xsl

Source: Internet
Author: User
Tags intl composer install magento2
: 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.