rpm -qa | grep "^gcc-"
On my Redhat 9 system, this produces:
bash-2.05b$ rpm -qa | grep "^gcc-"
Having located the fact that gcc-3.2.2-5 is installed, try:
rpm -ql gcc-3.2.2-5 | grep "gcc$"
(substituting the actual version numbers.) On my Redhat 9 system, this produces:
bash-2.05b$ rpm -ql gcc-3.2.2-5 | grep "gcc$"
I don't know why Redhat puts /usr/bin/i386-redhat-linux-gcc, but it is identical with /usr/bin/gcc.
Then use the "ls" command to verify that gcc is where the package thinks it is. It is possible that the gcc package was installed but someone deleted gcc manually?
Now, after you have located gcc, you should verify that it is actually able to compile a program, for example the simple "Hello, World" program found in all C texts. The reason for this is that ./configure does this to verify that the gcc it finds is actually able to compile a program. If you are missing the assembler (as) or the linker (ld), it will complain about it not being able to find an acceptable