first you want to remove that gcc-2.96, red hat 9 came with gcc-3.x. it's important that you install the red hat 9 gcc rpm's, not just something found at random on the net. Also note that gcc alone will not help you, you need a development environment ( the best place to get all of these is from your install cd's):
autoconf
automake
gcc ( for c)
g++ (for c++ - for other languages there are other frontends)
make
m4
binutils
sed
gawk
libtool
perl
python
bison
kernel-headers ( only required for some packages, note this is not the same thing as the kernel-source package and this package
needs to be the original package from your red hat 9 install cd's or from a red hat 9 mirror)
here are a couple very basic rpm commands to get you going:
to upgrade a package ( you should also use this to install too):
to search for a package
Code:
rpm -qa | grep <package>
see "man rpm" or do "rpm --help" in a console to see the full (long) list of options for rpm.