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 7 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.

Once you have signed up, log into your Cloudwafer Client Area with the password provided in your mail and deploy your Cloudwafer cloud server.

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 yum 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"

Cloudwafer-CentOS-7-GCC-1 Enter your sudo password.

Cloudwafer-CentOS-7-GCC-2 Press Y to continue as shown above.

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:

gcc --version

Cloudwafer-CentOS-7-GCC-3