Magento Compiling php5.6.21 commands

Source: Internet
Author: User
Tags gettext intl ldap php tutorial xsl zts magento2 zend

./configure '--prefix=/alidata/server/php '--enable-opcache '--with-config-file-path=/alidata/server/php/etc '- -with-mysql=mysqlnd '--with-mysqli=mysqlnd '--with-pdo-mysql=mysqlnd '--enable-fpm '--enable-static '-- Enable-inline-optimization '--enable-sockets '--enable-wddx '--enable-zip '--enable-calendar '--enable-bcmath ' '--enable-soap '--with-zlib '--with-iconv=/usr/local '--with-gd '--with-xmlrpc '--enable-mbstring '--with-curl '--enable-ftp '--with-mcrypt '--with-freetype-dir=/usr/local/freetype.2.1.10 '--with-jpeg-dir=/usr/local/ Jpeg.6 '--with-png-dir=/usr/local/libpng.1.2.50 '--disable-ipv6 '--disable-debug '--with-openssl '-- Disable-maintainer-zts '--disable-fileinfo '--enable-intl '--enable-cgi '--with-xsl '

------------------------------------------

Problem phenomenon:
[Email protected] magento2]# pwd
/home/wwwroot/default/magento2
[[email protected] 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
[[email protected] 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.

Usage:/usr/local/bin/php-config [OPTION]
Options:
--prefix [/usr/local/cellar/php55/5.5.35]
--includes [-I/USR/LOCAL/CELLAR/PHP55/5.5.35/INCLUDE/PHP-I/USR/LOCAL/CELLAR/PHP55/5.5.35/INCLUDE/PHP/MAIN-I/USR /local/cellar/php55/5.5.35/include/php/tsrm-i/usr/local/cellar/php55/5.5.35/include/php/zend-i/usr/local/ Cellar/php55/5.5.35/include/php/ext-i/usr/local/cellar/php55/5.5.35/include/php/ext/date/lib]
--ldflags [-l/usr/local/cellar/libxml2/2.9.3/lib-l/usr/local/opt/openssl/lib-l/usr/local/opt/jpeg/lib-l/usr/ local/opt/libpng/lib-l/usr/local/cellar/freetype/2.6.3/lib-l/usr/local/opt/gettext/lib-l/usr/local/opt/ Unixodbc/lib]
--libs [-lcrypto-lssl-lcrypto-lz-lexslt-lresolv-ledit-lncurses-lldap-llber-liconv-liconv-lintl -lpng-lz-ljpeg-lcrypto-lssl-lcrypto-lcurl-lbz2-lz-lcrypto-lssl-lcrypto-lm-lxml2-lz-liconv-lm-lgssapi_krb 5-lkrb5-lk5crypto-lcom_err-lcurl-lxml2-lz-liconv-lm-lfreetype-lodbc-lodbc-lxml2-lz-liconv-lm-lxml2-lz-li Conv-lm-lxml2-lz-liconv-lm-lxml2-lz-liconv-lm-lxml2-lz-liconv-lm-lxml2-lz-liconv-lm-lxml2-lz-liconv-l M-LXML2-LXSLT]
--extension-dir [/usr/local/cellar/php55/5.5.35/lib/php/extensions/no-debug-non-zts-20121212]
--include-dir [/usr/local/cellar/php55/5.5.35/include/php]
--man-dir [/usr/local/cellar/php55/5.5.35/share/man]
--php-binary [/usr/local/cellar/php55/5.5.35/bin/php]
--php-sapis [Apache2handler CLI fpm CGI]
 --configure-options [--prefix=/usr/local/cellar/php55/5.5.35--localstatedir=/usr/local/var--sysconfdir=/ usr/local/etc/php/5.5--with-config-file-path=/usr/local/etc/php/5.5--with-config-file-scan-dir=/usr/local/etc/ PHP/5.5/CONF.D--mandir=/usr/local/cellar/php55/5.5.35/share/man--enable-bcmath--enable-calendar--enable-dba-- Enable-exif--enable-ftp--enable-gd-native-ttf--enable-mbregex--enable-mbstring--enable-shmop--enable-soap-- Enable-sockets--enable-sysvmsg--enable-sysvsem--enable-sysvshm--enable-wddx--enable-zip--with-freetype-dir=/ Usr/local/opt/freetype--with-gd--with-gettext=/usr/local/opt/gettext--with-iconv-dir=/usr--with-icu-dir=/usr/ local/opt/icu4c--with-jpeg-dir=/usr/local/opt/jpeg--with-kerberos=/usr--with-libedit--with-mhash--with-ndbm=/ usr--with-pdo-odbc=unixodbc,/usr/local/opt/unixodbc--with-png-dir=/usr/local/opt/libpng--with-unixODBC=/usr/ Local/opt/unixodbc--with-xmlrpc--with-zlib=/usr--with-readline=/usr/local/opt/readline--witHout-gmp--without-snmp--with-libxml-dir=/usr/local/opt/libxml2--with-apxs2=/usr/sbin/apxs--libexecdir=/usr/ Local/cellar/php55/5.5.35/libexec--with-bz2=/usr--disable-debug--with-openssl=/usr/local/opt/openssl-- ENABLE-FPM--with-fpm-user=_www--with-fpm-group=_www--with-curl--with-xsl=/usr--with-ldap--with-ldap-sasl=/usr- -with-mysql-sock=/tmp/mysql.sock--with-mysqli=mysqlnd--with-mysql=mysqlnd--with-pdo-mysql=mysqlnd-- Disable-opcache--enable-pcntl--without-pear--enable-dtrace--enable-zend-signals]
--version [5.5.35]
--vernum [50535]

Magento Compiling php5.6.21 commands

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.