PDA

View Full Version : [ubuntu] GCC Compiler in Ubuntu 7.10



theemperor
November 24th, 2008, 05:10 PM
Hi,

I am using Ubuntu 7.10.

How do i find out whether gcc is installed or not in my machine. Because when ever i try to compile some source code it says Checking for GCC and couldn't find GCC compiler.

I am not a techie. Pls help me

Thanks in advance

Bijoy

pennacook
November 24th, 2008, 05:32 PM
Have a look at the output of

dpkg -s gcc
If it reports back

Status: install ok installed then it is installed.

linux_tech
November 24th, 2008, 05:42 PM
To check the version you can use (in terminal)

gcc -v
If its not installed, you may install it by

sudo apt-get install gcc

taurus
November 24th, 2008, 07:57 PM
sudo apt-get update
sudo apt-get install build-essential

theemperor
November 25th, 2008, 04:54 AM
Hi,
Thanks a lot.
I found it installed in my machine. This thread posting was really helpful


Bijoy