PDA

View Full Version : [ubuntu] what is command to install gcc compiler?



abhilashm86
September 30th, 2008, 04:29 PM
I have downloaded all ubuntu codecs,but not able to compile program..........please tell how to install gcc compiler...........

VMC
September 30th, 2008, 04:34 PM
It should be installed. Type the following.


gcc -dumpversion

If not installed or you need a more current version then type


apt-get install gcc

DrMega
September 30th, 2008, 04:42 PM
Don't forget to make sure you have installed the package 'build-essential', otherwise you'll have a job getting anything to compile as most of the standard headers etc will be missing.

oldos2er
September 30th, 2008, 07:33 PM
I have downloaded all ubuntu codecs,but not able to compile program..........please tell how to install gcc compiler...........

sudo aptitude update && sudo aptitude install build-essential