The GNU Compiler Collection (GCC) is a compiler system produced by the GNU Project supporting various programming languages. GCC is a key component of the GNU toolchain and the standard compiler for most projects related to GNU and Linux, including the Linux kernel.
In this guide, we will install GCC on a CentOS 8 server.
Deploying your cloud server
If you have not already registered with Cloudwafer, you should begin by getting signed up. Take a moment to create an account after which you can easily deploy your own cloud servers.
Updating System Packages
It is always recommended that you update the system to the latest packages before beginning any major installations. This is done with the command below:
sudo dnf update
Step 1: Install Development Tools
The first step in our installation is to install the development tools which are packages required to install on your system if you plan to build software and packages on your system. Issue the command below.
sudo yum group install "Development Tools"
Step 2: Validate Installation
After our installation, check that the GCC compiler is successfully installed by using the
gcc --version command which will print the GCC version: