First copy the following archives
Install each of these to create the libgd library
cd /usr/local/src
tar zxf libpng-1.2.0.tar.gz
cd libpng-1.2.0
./configure
make
make install
cd /usr/local/src
tar zxf jpegsrc.v6b.tar.gz
cd jpeg-6b
./configure
make
make install
cp j*.h /usr/local/include
cd /usr/local/src
tar zxf gd-2.0.1.tar.gz
cd gd-2.0.1
make
make install
Alternatively install libgd using RPMS for RedHat
For Perl install the following RPMS
Alternatively use Perl TGZ files in
Note: You should go to a CPAN site for the latest version of Perl and its modules.