The default Ubuntu repositories contain a meta-package named “build-essential” that includes the GNU compiler collection, GNU debugger, and other development libraries and tools required for compiling software.
To install the Development Tools packages, run the following command as root or user with sudo privileges :
sudo apt update
sudo apt install build-essential
The command installs a lot of packages, including gcc, g++ and make.
Verify that the GCC compiler is successfully installed by running the following command that prints the GCC version: gcc --version
