Magento 编译 php5.6.21 命令

./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‘

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

问题现象:
[[email protected] magento2]# pwd
/home/wwwroot/default/magento2
[[email protected] 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 to

update them.
Your requirements could 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.
解决问题:
进入cd /home/freeman/tools/lnmp1.2-full/src/php-5.6.9/ext/intl/
执行$phpize && ./configure --with-php-c/local/php/bin/php-config && make && make install
在这个configure的过程中会出现错误,安装相应的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 && make install
修改php.ini
$vi /usr/local/php/etc/php.ini
增加:
extension=xsl.so
extension=intl.so
然后重启php服务/etc/init.d/php-fpm restart
再回到/home/wwwroot/magento2下面执行
$composer install
[[email protected] 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%         
这样就成功了。
以上就介绍了如何解决magento2安装过程中缺少两个php扩展的问题:ext-intl和ext-xsl,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。



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_krb5 -lkrb5 -lk5crypto -lcom_err -lcurl -lxml2 -lz -liconv -lm -lfreetype -lodbc -lodbc -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -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]

时间: 2024-11-25 06:39:14

Magento 编译 php5.6.21 命令的相关文章

编译php-5.5.15出错,xml2-config not found

今天在centos上编译php-5.5.15, [plain] view plaincopy cd php-5.5.15 ./configure --prefix=/usr/local/php/ --with-config-file-path=/usr/local/php/etc/ --enable-fpm 返回错误: [plain] view plaincopy checking libxml2 install dir... no checking for xml2-config path..

WIndows下编译libexif-0.6.21,生成VS下可用的dll和lib

1.下载libexif-0.6.21.zip 下载地址是http://sourceforge.net/projects/libexif/files/libexif/0.6.21/ 2.解压libexif-0.6.21.zip 我解压到了d:\opensources\下 3.安装Mingw 下载地址是http://www.mingw.org/ 点击右上角的Download Installer 记得安装Msys 我的安装路径是:C:\MinGW 下面依次有如下文件夹: bin include lib

编译php-5.6出错,xml2-config not found

今天在centos上编译PHP-5.6 cd php-5.6 ./configure --prefix=/usr/local/php5.6/ --with-apxs2=/usr/local/apache.2.2/bin/ apxs 返回错误: checking libxml2 install dir... no checking for xml2-config path... configure: error: xml2-config not found. Please check your l

衡阳高防服务器租用-CentOS6.2服务器环境配置:源码编译PHP5.4

衡阳高防服务器租用-CentOS6.2服务器环境配置:源码编译PHP5.4 在 开始之前,先把关于libmcrypt库的问题再说说,我也是在安装过程遇到的,因为原本以为yum可以安装好一切依赖包的,但在Centos6.2 64位环境下就是这么奇怪,yum安装上的libmcrypt始终都在编译过程提示缺少一个.h文件,为此差点碰伤了头.经过过多试验,总算把 libmcrypt这块先弄好了,否则到了PHP的安装环境是做不来的.安装PHP5.4.13要做的相关准备工作有除了下载PHP5.4.13的源码

程序包管理的前端工具yum、程序包管理器编译安装、sed命令

下面介绍的是程序包管理的前端工具yum.程序包管理器编译安装.sed命令. 一.Linux程序包管理:程序包管理的[前端工具] 1.yum软件包仓库简介 CentOS系的管理工具有yum和dnf.yum是一款发行版的Linux,其使用的默认程序包管理工具为rpm. URL是yum定位软件包仓库和仓库中程序文件的主要标识方式,表示如下: 例如:schema://[[email protected]]hostname/PATH/TO/DOCUMENT[paramers][methord] (例子中的

编译PHP5缺t1lib包安装

t1lib_doc.dvi Error解决: 1. 下载t1lib-5.1.2.tar.gz2. 解决依赖关系:sudo apt-get build-dep t1lib 3. 安装:./configure & make without_doc & make install 4. 编译php5 时在./configure后加上 –with-t1lib=/usr/local/share/t1lib

Maven 手动添加第三方依赖包及编译打包和java命令行编译JAVA文件并使用jar命令打包

一,实例:新建了一个Maven项目,在eclipse中通过 build path –> configure path-.将依赖包添加到工程中后,eclipse不报错了.但是用Maven命令 mvn clean compile 时出错如下: 原因是在eclipse中添加了 exteneral jar后,还需要在maven中再添加依赖的jar包 Maven手动添加第三方依赖包有两种方法: 参考:maven 添加第三方依赖              maven中把依赖的JAR包一起打包 第一种方法是使

centos6.5 源码编译 mysql5.6.21

1.yum安装各个依赖包 [[email protected] ~]# yum -y install gcc gcc-devel gcc-c++ gcc-c++-devel autoconf* automake* zlib* libxml* ncurses-devel ncurses libgcrypt* libtool* cmake openssl openssl-devel bison bison-devel unzip 2.创建mysql安装目录和数据库目录 sudo mkdir -p /

编译php5.6

没想到编译个LAMP这么麻烦又简单. 按照官网的做就可以了,只是我在CentOs下一直会提示出现这个错误 按照官网的安装方法:install 用下面的参数: ./configure --with-apxs2=/usr/local/httpd/bin/apxs --with-mysql --prefix=/usr/local/php5.6 --with-iconv-dir=/usr/local/lib 总是提示下面这个错误: /php-5.6.0/ext/iconv/iconv.c:2512: m