Centos 5.6 安装php环境

问题描述:
make[2]: *** [gd_png.lo] 错误 1
make[2]: Leaving directory `/usr/src/gd-2.0.35'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/usr/src/gd-2.0.35'
make: *** [all] 错误 2

解决办法:(红字修改部分)
[root@gfwebserver gd-2.0.35]# vi gd_png.c
 
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
 
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include "gd.h"
 
#ifdef HAVE_LIBPNG
 
#include "gdhelpers.h"
#include "/usr/local/libpng/include/png.h"              
 
#define TRUE 1
#define FALSE 0