all this from a "maybe"
maybe ??????
uninstalling a "maybe messed up" install of gcc then reinstalling it ??? MIGHT???? fix it
linux is not windows
but
SOMETIMES it works , not always
( yum remove ProgramName -- then --- yum install ProgramName )
if gcc and ALL ( and there are A LOT OF DEPENDENCIES NEEDED !!!) the dependance's are not installed then gcc will NOT WORK
and gcc is not "just one program"
it is a collection of compiler tools ( and the compilers )
gcc
g++
gfortran
gcc-obj
gcc-gov
and so on
plus ALL the software it needs ( and it needs a lot )
from the FIRST post
it looks like there are MANY DIFFERENT versions installed -- and likely NOT installed correctly
first that file in /bin called "gcc" is only a LINK to one of those versions 3.1 3.2,and 4.4
it is likely that things are a bit MESSED UP
so lets start be uninstalling ALL the gcc development tools
then reinstall then the correct way
this might be quick and easy
OR TAKE A WEEK
start with this
this will make a list of installed rpms of the compiler
Code:
su -
rpm -qa | grep gcc > /gcclist.txt
that will make a list in a text file in the root tree "/"
to see the list in the terminal
Code:
su -
rpm -qa | grep gcc
then post it here