Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: cannot install "build-essential"?

  1. #1
    Join Date
    Nov 2006
    Beans
    Hidden!

    cannot install "build-essential"?

    I have a c program compiled, it just show " stdio.h: No such file or directory". Someone said I shold install build-essential, but it just doesn't work:

    ~# apt-get install build-essential
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Couldn't find package build-essential

  2. #2
    Join Date
    Jan 2006
    Location
    durham, nc
    Beans
    68
    Distro
    Ubuntu

    Re: cannot install "build-essential"?

    that is odd. it should work.
    in your message you have $ apt-get install build-essential but it should be $ sudo apt-get install build-essential.
    one thing you could try is $ sudo apt-get update to ensure that you repo databases are up to date and that they recognize there is a build-essential package.
    could also open up synaptic and verify that there is something there for build-essential.

  3. #3
    Join Date
    Nov 2006
    Beans
    1

    Re: cannot install "build-essential"?

    Do you have to pay 4 it?

    if u do i don't really wanna install it

  4. #4
    Join Date
    Nov 2006
    Beans
    Hidden!

    Re: cannot install "build-essential"?

    the problem is solved.launch the synaptic package manager & click the reload button. thank you! Actually, I have reinstall the OS before i find the solution.

  5. #5
    Join Date
    Jan 2006
    Location
    Leuven, Belgium
    Beans
    3,414

    Re: cannot install "build-essential"?

    Quote Originally Posted by the_dragon_booster_ View Post
    Do you have to pay 4 it?

    if u do i don't really wanna install it
    Pay for software from the repositories? No way! It's all free and open
    (This is, as long as you don't add multiverse.)

  6. #6
    Join Date
    Nov 2006
    Beans
    76
    Distro
    The Feisty Fawn Testing

    Re: cannot install "build-essential"?

    Something else I'd like to ask...how did you compile a program without build-essential?

  7. #7
    Join Date
    Aug 2005
    Beans
    90

    Re: cannot install "build-essential"?

    Quote Originally Posted by steevk View Post
    Something else I'd like to ask...how did you compile a program without build-essential?
    build-essential is only a metapackage, so you can build everything you want without having it installed (as long as its dependencies are installed) :

    Code:
    $ apt-cache depends build-essential
    build-essential
     |Dépend: libc6-dev
      Dépend: <libc-dev>
        libc6-dev
      Dépend: gcc
      Dépend: g++
      Dépend: make
      Dépend: dpkg-dev

  8. #8
    Join Date
    Nov 2006
    Beans
    76
    Distro
    The Feisty Fawn Testing

    Re: cannot install "build-essential"?

    I guess that's my lack of knowledge speaking. Whenever I had tried to just 'sudo apt-get install gcc' it wouldn't do it, and I was pointed towards build-essential.

  9. #9
    Join Date
    Dec 2006
    Location
    nyc
    Beans
    1
    Distro
    Ubuntu 6.10 Edgy

    Re: cannot install "build-essential"?

    minor footnote which might trip up some fellow newbies. Only one instance of apt-get will run at a time. Ubuntu's Update Manager uses apt-get, I'd run updates and failed to close the window before trying to install the build-essential package. Because Update Manager had an instance open, trying to run apt-get returned these not-so-helpful errors:
    Code:
    E: Could not get lock /var/cache/apt/archives/lock - open (11 Resource temporarily unavailable)
    E: Unable to lock the download directory
    Once I realized I needed to close Update Manager before running apt-get, my installation went smoothly.
    Last edited by joemaller; December 11th, 2006 at 05:29 AM.

  10. #10
    Join Date
    Mar 2007
    Beans
    30

    Re: cannot install "build-essential"?

    Quick questions here!!!

    apt-get install is asking me to put in my 7.10 gutsy cd. The thing is that i installed from a rewritable and now the cd is full of music. How can i tell the apt install command to use the regular download from the internet fashion rather than use the cd?

    Thanks for the help.
    Building for a shallow grave
    -- Jim Morrison

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •