In a Linux or UNIX, to check whether GCC is installed on your system enter the following command in the command line −
$ gcc -v
If GCC compiler installed on your system, then it should print a message as follows −
Using built-in specs.
Configured with: ../configure --prefix=/usr .......
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)
If GCC is not installed, then you will have to install it yourself
On ubantu to install GCC write the following command in terminal
sudo apt-get install gcc