1.安装Zend
./install.sh
2.安装curl
./configure --prefix=/usr/local/curl
make && make install
3.安装zlib
[root@localhost ~]# rpm -qa |grep zlib
zlib-devel-1.2.1.2-1.2
zlib-1.2.1.2-1.2
4.安装libpng
[root@localhost ~]# rpm -qa |grep libpng
libpng10-devel-1.0.16-3.el4_5.1
libpng10-1.0.16-3.el4_5.1
libpng-devel-1.2.7-3.el4_5.1
libpng-1.2.7-3.el4_5.1
5.安装freetype
tar zxvf freetype-2.1.10.tar.gz
cd freetype-2.1.10
./configure --prefix=/usr/local/freetype2
make
make install
6.安装GD
tar zxvf gd-2.0.33.tar.gz
cd gd-2.0.33
./configure --prefix=/usr/local/gd2 --with-png --with-freetype --with-jpeg
make
make install
7.重新编译php
./configure --prefix=/usr/local/php --with-apxs2=/usr/local//apache/bin/apxs --with-gd=/usr/local/gd2 --with-mysql=/usr/local/mysql --enable-mbstring --with-zlib-dir=/usr/local/lib --with-jpeg-dir=/usr/local/lib --with-png-dir=/usr/local/lib --with-freetype-dir=/usr/local/freetype --enable-sockets --with-libxml-dir=/usr/local/libxml2 --with-mcrypt=/usr/local/libmcrypt --enable-ftp --with-curl=/usr/local/curl
make && make install
8.重启apache
阅读(1637) | 评论(0) | 转发(0) |