[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: gcc

On Tue, Jun 06, 2006 at 03:41:33PM +0200, Francesco Pietra wrote:
> Hi Len:
> perhaps better for me to go for a jogging, or make a cup of strong green tea, 
> because I am getting really confused:
> #dselect
> shows that both gcc-4.1 and make are installed (blank*** with the last * 
> highlighted, as for packages that work, like apt)

Does dselect show gcc (not gcc-4.1) as installed?

Does 'dpkg -l gcc' say gcc is installed?

Does 'apt-get install gcc' do anything?

> In contrast (?)
> #dpkg -S /usr/bin/gcc
> dpkg: /usr/bin/gcc not found

So you don't have a /usr/bin/gcc which probably means you don't have the
gcc (no version) package installed.

> but see below from a perusal of directories
> Installation was in differet partitions and raid1: /, /usr, /var/ 
> swap, /home, /tmp
> /usr/bin includes, inter alia, g++-4.1, gcc-4.1, gccbug-4.1
> Previously I was trying to compile a program that has Makefile only:
> $make
> gcc -g -02 -c -o active.o active.c
> make: *** [active.o] Error 127

Makes sense.  If only gcc-4.1 is installed, then you only have
/usr/bin/gcc-4.1, not /usr/bin/gcc since the gcc package provides that.

As far as I can tell, gcc still depends on gcc-4.0 since the transition
isn't done to gcc 4.1, so using gcc will currently use gcc-4.0.3 until
it is transitioned and the gcc package updated to default to gcc-4.1.

Here is the state of my machine right now:
debian:~# dpkg -l gcc\*
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
||/ Name                              Version
ii  gcc                               4.0.3-4 The GNU C compiler
un  gcc-2.95                          <none> (no description available)
un  gcc-3.2                           <none> (no description available)
ii  gcc-3.3-base                      3.3.6-13 The GNU Compiler Collection (base package)
un  gcc-3.5                           <none> (no description available)
un  gcc-3.5-base                      <none> (no description available)
ii  gcc-4.0                           4.0.3-3 The GNU C compiler
ii  gcc-4.0-base                      4.0.3-3 The GNU Compiler Collection (base package)
un  gcc-4.0-doc                       <none> (no description available)
un  gcc-4.0-locales                   <none> (no description available)
ii  gcc-4.1                           4.1.1-2 The GNU C compiler
ii  gcc-4.1-base                      4.1.1-2 The GNU Compiler Collection (base package)
un  gcc-4.1-doc                       <none> (no description available)
un  gcc-4.1-locales                   <none> (no description available)
un  gcc-doc                           <none> (no description available)

So I have installed the packages:
gcc gcc-3.3-base gcc-4.0 gcc-4.0-base gcc-4.1 gcc-4.1-base

Len Sorensen

Reply to: