Installing GCC on Ubuntu
The default Ubuntu repositories contain a meta-package named build-essential that contains the GCC compiler and a lot of libraries and other utilities required for compiling software.
Where is gcc in Linux?
You need to use the which command to locate c compiler binary called gcc. Usually, it is installed in /usr/bin directory.
How do I know if gcc is installed?
In the Command Prompt window type “gcc” and hit enter. If the output says something like “gcc: fatal error: no input files”, that is good, and you pass the test.