Installing C compiler on Linux

On RPM based:
sudo yum group install development-tools
On Deb based:
sudo apt-get install build-essentials
Verify installation:
cc --version
gcc --version