Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13
hay guys i hope all u r well i want some help to install gcc on my local machine please guide me because i am new to linux and please ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2008
    Posts
    22

    how to install gcc in linux???


    hay guys i hope all u r well
    i want some help to install gcc on my local machine please guide me because i am new to linux and please guide me as simple as possible.please reply immediately ????????

  2. #2
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    1,189
    In *buntu, gcc is part of a package called build-essential, which should be on your installation disc.

    You don't say which flavour of *buntu you're using but if it's Ubuntu, you'll find the installation manager synaptic in your system menu. I don't know exactly where Kubuntu puts it but it will be on one of the menus.

    Launch synaptic with the installation disc in place and click on development in the left-hand pane; then find build-essential in the right-hand pane. Right click on it, and choose "Mark for installation". Then click the apply button.
    "I'm just a little old lady; don't try to dazzle me with jargon!"

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    In case you machine doesn't have internet access then open Terminal and execute this
    Code:
    sudo apt-get clean all
    sudo apt-cdrom add
    sudo apt-get update
    sudo apt-get install build-essential
    Do not execute apt-cdrom command if your machine has internet access. apt-get will fetch packages from Ubuntu sources instead of Installation CD.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  4. #4
    Just Joined!
    Join Date
    Jul 2008
    Posts
    22
    sorry sir this not workin

  5. #5
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    your ubuntu cd would need to be in the drive for you to install from the cd

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Quote Originally Posted by ichfaisal
    sorry sir this not workin
    Which command is throwing error? Could you post exact error message here?

    sudp apt-cdrom add
    command asks for Installation CD itself.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #7
    Just Joined!
    Join Date
    Jul 2008
    Posts
    22

    this is the problem?

    after running this command
    sudo apt-get install build-essential
    i got following errors
    Reading package lists... Done
    Building dependency tree... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.

    Since you only requested a single operation it is extremely likely that
    the package is simply not installable and a bug report against
    that package should be filed.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    build-essential: Depends: libc6-dev but it is not going to be installed or
    libc-dev
    Depends: gcc (>= 4:4.1.1) but it is not installable
    Depends: g++ (>= 4:4.1.1) but it is not going to be installed Depends: make but it is not installable
    Depends: dpkg-dev (>= 1.13.5) but it is not going to be installed
    E: Broken packages

  8. #8
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Execute this
    Code:
    sudo apt-get clean all
    sudo apt-get update
    sudo apt-get dist-upgrade
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  9. #9
    Linux User kmitnick's Avatar
    Join Date
    May 2008
    Location
    Jordan - Amman
    Posts
    329
    Devils casper wut is the exact purpose of clean all and wut i s the difference between upgrade and update
    Dual Booting Ubuntu 10.04, Windows 7

    Toshiba Satellite A200-1M5, Duo Core 2.0 Ghz, 1 Gigs RAM, 256 Intel Card

    You are registered Linux user number 490788
    Happy Linuxing

  10. #10
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    update is for getting the latest information on the packages in the repository

    upgrade is the command that updates the installed packages to the newer packages as found in the repository

    clean is to remove the downloaded installation files for the packages

Page 1 of 2 1 2 LastLast

Posting Permissions

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