给PHP安装GD库
=======================
#tar zxvf freetype-2.3.5.tar.gz
#cd freetype-2.3.5
#./configure --prefix=/usr/local/freetype
#make
#make install
#cd ..
========================
#tar zxvf jpegsrc.v6b.tar.gz
#cd jpeg-6b/
#mkdir /usr/local/jpeg6
#mkdir /usr/local/jpeg6/bin
#mkdir /usr/local/jpeg6/lib
#mkdir /usr/local/jpeg6/include
#mkdir /usr/local/jpeg6/man
#mkdir /usr/local/jpeg6/man1
#mkdir /usr/local/jpeg6/man/man1
#./configure --prefix=/usr/local/jpeg6/
#make
#make install
#cd ..
=======================
#tar zxvf libpng-1.2.26.tar.gz
#cd libpng-1.2.26
#./configure --prefix=/usr/local/libpng
#make
#make install
#cd ..
=======================
#tar zxvf libtool-1.5.24.tar.gz
#cd libtool-1.5.24
#./configure
#make
#make install
#cd ..
=======================
#tar zxvf zlib-1.2.3.tar.gz
#cd zlib
#cd 1.2.3
#./configure --prefix=/usr/local/zlib
#make
#make install
#cd ..
=======================
#tar zxvf gd-2.0.35.tar.gz
#cd gd-2.0.35
#./configure --prefix=/usr/local/gd --with-jpeg=/usr/local/jpeg6/ --with-png=/usr/local/libpng --with-zlib=/usr/local/zlib/ --with-freetype=/usr/local/freetype/
#make
#make install
=======================
PHP的编译参数:
./configure --prefix=/usr/local/php5.2.2 --enable-mbstring --enable-sockets --enable-soap --enable-zip --enable-pdo --with-apxs2=/usr/local/apache2/bin/apxs --with-config-file-path=/usr/local/php5.2.2/lib --with-pdo-mysql=/usr/local/mysql --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-gd=/usr/local/gd/ --with-freetype-dir=/usr/local/freetype/ --with-jpeg-dir=/usr/local/jpeg6/ --with-png-dir=/usr/local/libpng/ --with-zlib-dir=/usr/local/zlib/
阅读(1586) | 评论(0) | 转发(0) |