gcc install

Peter Garrett peter.garrett at optusnet.com.au
Sun Oct 22 03:20:23 UTC 2006


On Sun, 22 Oct 2006 01:14:25 +0530
"Cheatah 0#@!^" <cheataah at gmail.com> wrote:

> i tried "sudo apt-get gcc" to install gcc. but i couldnt. the error
> message was-"cant find package gcc"

I suggest you install the "build-essential" package.

"gcc" does exist as a package, but build-essential pulls in g++ , make and
a few other bits:

$ apt-cache  depends build-essential
build-essential
 |Depends: libc6-dev
  Depends: <libc-dev>
    libc6-dev
  Depends: gcc
  Depends: g++
  Depends: make
  Depends: dpkg-dev

If apt can't find gcc ( or build-essential ), then there is a problem with
your apt configuration - probably something missing
in /etc/apt/sources.list , or you have not updated your list of
available packages with " sudo apt-get update "

Peter




More information about the ubuntu-users mailing list