安装 freetype:
tar -zxf freetype-2.1.9.tar.gz
cd freetype-2.1.9
./configure --prefix=/usr/local/freetype
make
make install
安装 Autoconf 2.59
tar -zxf autoconf-2.59.tar.tar
cd autoconf-2.59
./configure
make
make install
安装 gd 库:
tar -xzf gd-2.0.35.tar.gz
cd gd-2.0.35
./configure --prefix=/usr/local/gd2 --with-zlib=/usr/local/zlib2/ --with-
png=/usr/local/libpng2/ --with-jpeg=/usr/local/jpeg6/ --with-
freetype=/usr/local/freetype/
make
make install
安装 gd-gif 库:
tar -zxf gd-2.0.26gif.tar.gz
cd gd-2.0.26gif
./configure
make
make install
安装 GD 库:
tar -zxf GD-2.35.tar.gz
cd GD-2.35
perl Makefile.PL
make
make install
4.安装 php
tar -zxvf php-5.2.8.tar.gz
cd php-5.2.8
./configure --prefix=/usr/local/php 不换行使用空格链接下面参数
--with-apxs2=/usr/local/apache/bin/apxs 不换行使用空格链接下面参数
--with-config-file-path=/usr/local/lib 不换行使用空格链接下面参数
--with-mysql 不换行使用空格链接下面参数
--with-libxml-dir 不换行使用空格链接下面参数
--with-expat-dir 不换行使用空格链接下面参数
--with-gd 不换行使用空格链接下面参数
--with-jpeg-dir 不换行使用空格链接下面参数
--with-zlib-dir 不换行使用空格链接下面参数
--with-png 不换行使用空格链接下面参数
--with-freetype-dir
make
make install
注释:
----------------------------------------------------------
其中./configure
后的
--prefix=/usr/local/php