Quote:
Originally posted by gamehack
While I was trying to compile a program it gave that error:
Code:
checking whether the C compiler (gcc ) works... no configure: error: installation or configuration problem: C compiler cannot create executables.
And the gcc won't to compile anything.I tried with 2.95, 3.0, 3.2, 3.3. Nothing works. Distro is Debian GNU/Linux unstable latest
|
So assuming you have 2.95, 3.0, 3.2, and 3.3 versions of gcc, it would stand to reason that gcc exists. My guess, though, is that for some reason the pointer to gcc points to something that either isn't there or isn't set up correctly.
One suggestion is to type in which gcc to determine where the existing gcc is pointing. Another idea is to remove, then explicitly install gcc again, e.g.,
apt-get remove gcc
apt-get install gcc
then try it again and see if it works.