[url]http://www.oschina.net/question/17_10674[/url]
make clean下
./configure --prefix=/usr/local/php --enable-sockets --enable-fpm --with-apxs2=/usr/local/apache2/bin/apxs --with-gd --enable-gd-native-ttf --enable-gd-jis-conv --enable-soap --enable-sockets --enable-zip --enable-xml --with-curl --enable-mbregex --enable-sysvsem --enable-mbstring
yum -y install gcc automake autoconf libtool make
yum install libpng-devel
make clean下
./configure --prefix=/usr/local/php --enable-sockets --enable-fpm --with-apxs2=/usr/local/apache2/bin/apxs --with-gd --enable-gd-native-ttf --enable-gd-jis-conv --enable-soap --enable-sockets --enable-zip --enable-xml --with-curl --enable-mbregex --enable-sysvsem --enable-mbstring
yum -y install gcc automake autoconf libtool make
yum install libpng-devel