LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   A Lot of Trouble With GCC (https://www.linuxquestions.org/questions/debian-26/a-lot-of-trouble-with-gcc-136391/)

gamehack 01-19-2004 12:42 PM

A Lot of Trouble With GCC
 
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

fancypiper 01-20-2004 11:58 AM

Have you installed the gnu c compiler (GCC) yet?

# What compiler version do I have installed
gcc -v
gcc --version

# What is the running kernel and compiler installed
cat /proc/version

masinick 01-22-2004 11:56 AM

Re: A Lot of Trouble With GCC
 
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.


All times are GMT -5. The time now is 07:52 AM.