标签:
1、准备编译环境
yum install gcc gcc-c++ pcre* openssl* gd-devel* libxml2-devel bzip2-devel libcurl-devel
2、下载PHP 5.6.16
wget http://php.net/distributions/php-5.6.16.tar.gz
3、解压并进入编译目录
tar -zxvf php-5.6.16.tar.gz cd php-5.6.16
4、配置编译参数
1 ./configure 2 --prefix=/usr/local/php 3 --with-zlib 4 --with-openssl 5 --with-mysql 6 --with-mysqli 7 --with-gd 8 --with-mcrypt 9 --with-curl 10 --with-bz2 11 --with-zlib 12 --with-jpeg-dir 13 --with-mhash 14 --enable-fpm 15 --enable-sockets 16 --enable-inline-optimization 17 --enable-mbstring 18 --enable-sysvsem 19 --enable-pcntl 20 --enable-mbregex 21 --disable-debug 22 --disable-pdo 23 --disable-rpath
5、编译安装(时间会比较长)
1 make 2 make install
标签:
原文地址:http://www.cnblogs.com/imzye/p/5078815.html