安装php5.5
./configure --prefix=/usr/local/php5.5.14/ --with-apxs2=/usr/local/apache2.2.27/bin/apxs --with-mysqli=/opt/mysql/bin/mysql_config --enable-mbstring --enable-bcmath --enable-sockets --with-gd=/usr/local/gd --with-jpeg-dir=/usr/local/gdjpeg/ --with-png-dir=/usr/local/gdpng/ --with-freetype-dir=/usr/local/freetype/ --with-xpm-dir=/usr/lib64/
安装gd
/configure --prefix=/usr/local/gd --with-jpeg=/usr/local/gdjpeg/ --with-png=/usr/local/gdpng/ --with-freetype=/usr/local/freetype/ --with-xpm=/usr/lib64/
安装gd gd-png gd-jpeg gd-freetype libXpm-devel