LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   why i can't install gcc or any other C compiler? (https://www.linuxquestions.org/questions/debian-26/why-i-cant-install-gcc-or-any-other-c-compiler-257458/)

HoreC 11-20-2004 11:10 PM

why i can't install gcc or any other C compiler?
 
when i apt-get install gcc, it shows:
The following packages have unmet dependencies:
gcc: Depends: gcc-3.3 (>= 1:3.3.4-1) but it is not going to be installed
E: Broken packages

when i install gcc-3.4, instead,
still can't find gcc:
bash:gcc:command not found

The_JinJ 11-20-2004 11:20 PM

Re: why i can't install gcc or any other C compiler?
 
Quote:

Originally posted by HoreC
when i apt-get install gcc, it shows:
The following packages have unmet dependencies:
gcc: Depends: gcc-3.3 (>= 1:3.3.4-1) but it is not going to be installed
E: Broken packages

when i install gcc-3.4, instead,
still can't find gcc:
bash:gcc:command not found

You say you installed 3.4 - did that work ok and no dependancy problems?
Just install the packages it lists as dependencies (can go round in circles a bit sometimes) - the last error suggests it never installed.

HoreC 11-20-2004 11:31 PM

Re: Re: why i can't install gcc or any other C compiler?
 
Quote:

Originally posted by The_JinJ
You say you installed 3.4 - did that work ok and no dependancy problems?
Just install the packages it lists as dependencies (can go round in circles a bit sometimes) - the last error suggests it never installed.

yes, i do install gcc-3.3,
but it still has an error as below:

The following packages have unmet dependencies:
gcc-3.3: Depends: cpp-3.3 (< 1:3.3.5) but 1:3.3.5-2 is to be installed
E: Broken packages

and while i install cpp-3.3, the system tell me it's a already the newest version,
and my cpp-3.3's version is :
cpp (GCC) 3.3.5 (Debian 1:3.3.5-2)
now:confused:

ernobe 11-21-2004 11:51 AM

It appears that you have a distribution conflict. Are you trying to install packages from the unstable distribution over stable? Run dselect, choose the right apt source, ( either stable, unstable, or testing ) and update available packages.


All times are GMT -5. The time now is 06:01 PM.