Hide Forgot
The 'gd' RPM shipped with Redhat-5.2 does not include the various header files which come with that library: milliways [282] [~/]> rpm -qpl gd-1.3-3.i386.rpm /usr/doc/gd-1.3 /usr/doc/gd-1.3/index.html /usr/doc/gd-1.3/readme.txt /usr/lib/libgd.so.1.2 milliways [286] [~/redhat/BUILD/gd1.3/]> ls *.h gd.h gdfontg.h gdfontl.h gdfontmb.h gdfonts.h gdfontt.h This means any applications which must have 'libgd' to build won't work. The (obvious) workaround is to grab the header files from the source.
try installing the gd-devel rpm.