请耐心看看http://cn2.php.net/gd
如果已经把apache2安装在/usr/local/apache2下、MySQL5安装在/usr/local/mysql下,请
[code:1]
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-zlib --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-xpm-dir=/usr/local --with-freetype-dir=/usr/local --with-t1lib --enable-gd-native-ttf --enable-mbstring
[/code:1]
then
[code:1]
make
[/code:1]
then
[code:1]
make install
[/code:1]
then
[code:1]
cp php.ini-dist /usr/local/lib/php.ini
[/code:1]
千万不要忘记
[code:1]
/usr/local/apache2/bin/apachectl restart
[/code:1]
如果不想这么麻烦,就直接安装rpm包最好了,什么都不用配置了