Find the answer to your Linux question:
Results 1 to 2 of 2
i am using ubuntu live cd and i tryed to compile a C program using gcc -oex1 ex1.c but get gcc command not found. how to solve that. I also ...
  1. #1
    Just Joined!
    Join Date
    Mar 2009
    Posts
    1

    Thumbs down compile C in ubuntu live cd

    i am using ubuntu live cd and i tryed to compile a C program using gcc -oex1 ex1.c
    but get gcc command not found. how to solve that. I also tried cc , bcc also instead gcc. but get same reply. help.

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Hi and Welcome !

    C and other compilers are not pre-installed in Ubuntu.
    Execute this to install necessary compilers :
    Code:
    sudo apt-get install build-essential
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

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