Results 1 to 10 of 10

Thread: How to install gcc

  1. #1
    Join Date
    Apr 2010
    Location
    Mumbai
    Beans
    4
    Distro
    Ubuntu 9.10 Karmic Koala

    How to install gcc

    How to install gcc?

    I've Ubuntu 9.10. gcc version is 4.4

    I've tried this code
    Code:
    sudo apt-cdrom add
    sudo apt-get update
    sudo apt-get install build-essential
    But no luck.

  2. #2
    Join Date
    Apr 2010
    Beans
    18

    Re: How to install gcc

    try sudo apt-get install gcc...or search for gcc in synaptic package manager

  3. #3
    Join Date
    Feb 2010
    Location
    The Land of 11,842 Lakes
    Beans
    75

    Re: How to install gcc

    What he said should work. I'd get both GCC and G++.
    For a full signature / about me, see my website.

  4. #4

    Re: How to install gcc

    How to install gcc?

    I've Ubuntu 9.10. gcc version is 4.4

    I've tried this code
    Code:
    sudo apt-cdrom add
    sudo apt-get update
    sudo apt-get install build-essential
    But no luck.
    That only works, if I remember correctly, if you use the alternate cd.

    try sudo apt-get install gcc...or search for gcc in synaptic package manager
    Not quite correct. One should update the repositories first, so one gets the most up-to-date applications.

    Code:
    sudo apt-get update && sudo apt-get install build-essential
    Learning is not attained by chance, it must be sought for with ardor and attended to with diligence. Abigail Adams ( 1744 - 1818 ), 1780;

    My blog Poetry and More Free Ubuntu Magazine

  5. #5
    Join Date
    Nov 2009
    Beans
    77
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How to install gcc

    I think this should be install by default. You can check your version by

    Code:
    gcc --version
    I think the latest version is 4.4.1
    "Excellent" -- mrburns

  6. #6
    Join Date
    Apr 2010
    Location
    Mumbai
    Beans
    4
    Distro
    Ubuntu 9.10 Karmic Koala

    Unhappy Re: How to install gcc

    My version is 4.4.1

    Whenever I try to compile program I get this error.



    What else I need to do here?
    Last edited by hmvartak; April 14th, 2010 at 04:23 AM.

  7. #7
    Join Date
    Jun 2007
    Location
    Porirua, New Zealand
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: How to install gcc

    I think conio.h is an ms-dos file which you don't need in Ubuntu. (Someone else will probably correct me if I'm mistaken)
    Forum DOs and DON'Ts
    Never assume that information you find using a search engine is up-to-date.
    Please use CODE tags.

  8. #8
    Join Date
    Apr 2010
    Location
    Mumbai
    Beans
    4
    Distro
    Ubuntu 9.10 Karmic Koala

    Unhappy Re: How to install gcc

    Now it says unexpected "(".


  9. #9
    Join Date
    Jun 2007
    Location
    Porirua, New Zealand
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: How to install gcc

    It would be better if you use copy and paste from your terminal, and wrap your code with [code] and [/code].

    Instead of running the program with sh, type the following in at the terminal:
    Code:
    ./a.out
    Forum DOs and DON'Ts
    Never assume that information you find using a search engine is up-to-date.
    Please use CODE tags.

  10. #10
    Join Date
    Apr 2010
    Location
    Mumbai
    Beans
    4
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: How to install gcc

    Quote Originally Posted by lisati View Post
    It would be better if you use copy and paste from your terminal, and wrap your code with [code] and [/code].

    Instead of running the program with sh, type the following in at the terminal:
    Code:
    ./a.out
    Now it's working. Thanks!

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
  •