标签:
1.先安装http
./configure --prefix=/usr/local/services/httpd-2.2.29 --enable-rewrite --enable-so
2.安装mysql
./configure \
--prefix=/usr/local/services/php-5.3.29/plugins/mysql-5.0.45 \
--enable-thread-safe-client
3.安装php
首先安装gd2
1.zlib
./configure --prefix=/usr/local/services/php-5.3.29/plugins/zlib-1.2.5.1
2.libpng
./configure \
--prefix=/usr/local/services/php-5.3.29/plugins/libpng-1.5.12 \
--enable-shared
3.jpeg
./configure --prefix=/usr/local/services/php-5.3.29/plugins/jpeg-7 --enable-shared --enable-static
4.freetype
./configure --prefix=/usr/local/services/php-5.3.29/plugins/freetype-2.4.10 --enable-shared --enable-static
5.fontconfig
./configure --prefix=/usr/local/services/php-5.3.29/plugins/fontconfig-2.9.92
6.gd2
./configure \
--prefix=/usr/local/services/php-5.3.29/plugins/libgd-2.0.35 \
--with-png=/usr/local/services/php-5.3.29/plugins/libpng-1.5.12 \
--with-freetype=/usr/local/services/php-5.3.29/plugins/freetype-2.4.10 \
--with-jpeg=/usr/local/services/php-5.3.29/plugins/jpeg-7 \
--enable-shared \
--enable-static
然后再安装libxml2
./configure --prefix=/usr/local/services/php-5.3.29/plugins/libxml2-2.72
最后安装php
./configure \
--prefix=/usr/local/services/php-5.3.29 \
--with-mysql=/usr/local/mysql \
--with-apxs2=/usr/local/services/httpd-2.2.21/bin/apxs \
--with-gd=/usr/local/services/php-5.3.29/plugins/libgd-2.0.35 \
--with-png-dir=/usr/local/services/php-5.3.29/plugins/libpng-1.5.12 \
--with-libxml-dir=/usr/local/services/php-5.3.29/plugins/libxml2-2.72 \
--with-freetype-dir=/usr/local/services/php-5.3.29/plugins/freetype-2.4.10 \
--with-jpeg-dir=/usr/local/services/php-5.3.29/plugins/jpeg-7 \
--enable-mbstring \
--enable-safe-mode \
--enable-sockets \
--enable-pcntl \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--enable-soap \
--enable-shmop \
--enable-embedded-mysqli \
--enable-bcmath \
--enable-zip \
--enable-sqlite-utf8 \
--with-readline \
--with-libedit
标签:
原文地址:http://www.cnblogs.com/brookin/p/4388910.html