make[2]: *** [gd_png.lo] Error 1 make[2]: Leaving directory `/tmp/gd-2.0.26gif' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/gd-2.0.26gif' make: *** [all] Error 2 [root@RHEL3 gd-2.0.26gif]#這個問題是由於gd庫中的gd_png.c這個源文件中包含png.h時,png.h沒有找到致使的。
collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/root/gd-2.0.21' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/gd-2.0.21' make: *** [all] Error 2[root@localhost gd-2.0.35]# yum install libjpeg-devel freetype-devel libpng-devel