Thursday, March 26, 2009

How to Install GCC (c/c++) Compiler in Ubuntu Linux

Install package called build-essential is the best way

build-essential contains a list of packages which are essential for building Ubuntu packages including gcc compiler, make and other required tools.


$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install build-essential
$ gcc -v
$ make -v

Now, you should able to compile software using C / C++ compilers.

12 comments:

davinderkumar said...

und gcc compilier at any after istalling gcc

Anonymous said...

Good one.. thanks

Anonymous said...

thanx

Anonymous said...

Thanks a lot

Anonymous said...

what do you mean when you say "und gcc compiler at any after installing gcc"?

Anonymous said...

perfect thanks

Anonymous said...

thanx

sibin mani said...

thanx

Anonymous said...

really suberb....

Doma Brahmaiah said...

in that case ,what would be the version it will install by using those commands in ubuntu?

Anonymous said...

Thanks

Anonymous said...

Perfection itself!