I had some trouble as well. There seems to be lots of "addons" in the latest
version.
Version 1.19 (the last version with gif support) installed OK for me on
Redhat 9.
See GD-1.19-* at
http://cpan.org/modules/by-module/GD/
Any GD with a version number below 2 should compile with the libgd
that comes with Redhat 9, which I believe is 1.84. You don't have to
go all the way back to 1.19 (you should only need to do that if you
want GIF support, and you have a libgd that supports GIF, but you
should not want to have GIF support).
\begin{offtopic}
If you want a newer version, i.e. the latest, download libgd yourself
(from
www.boutell.com), compile and install it somewhere out of the
way (I have some versions in /opt/gd-x.yy), and then download and
compile the GD 2.x version you want, making sure to tell it where the
correct libgd is installed. Off the top of my head, the sequence is
somewhat like this:
$ tar xzvf gd-x.yy.tar.gz
$ cd gd-x.yy
$ ./configure --prefix=/wherever/you/want
$ make
# become root
$ make install
\end{offtopic}
and for GD, just type perl Makefile.pl, and answer the first question
with /whatever/you/want/lib
Martien