I broke my gcc compiler

Doug Poulin dougp@prostyle.com
Tue Mar 22 19:28:00 GMT 2005


Somewhere along the line of adding some new software to my Redhat Linux 6.1
system, the gcc compiler got toasted.  I now get the following error when I
try to run it.

/usr/bin/ld: cannot open -lc: No such file or directory
collect2: ld returned 1 exit status

>From looking the Net around I know that the C-Library files are missing.
Fortunately I have another machine running the same OS, but if I need to
know where the C library files are that I need to copy over.  I'm not a C
programmer so please be specific when you respond.

The version I'm running is:
Reading specs from /usr/lib/gcc-lib/i386-redhat-Linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)

Doug



More information about the Gcc-help mailing list