December 3, 2021
GCC installation

How To Install GCC On Ubuntu 20.04 LTS

On this article we will discuss how to install build-essential or usually called as GCC, GNU Compiler Collection (GCC) on Ubuntu 20.04 LTS.

The GNU Compiler Collection (GCC) is a compiler system which was developed by the GNU Project to support the various programming languages includes front ends for C, C++, Objective-C, Fortran, Ada, Go, and D, as well as libraries for these languages. GCC is standard compiler for most projects related to GNU and Linux, including the Linux kernel. So many open-source programs are using GCC for compiling their source code including the Linux kernel and GNU tools.

The GCC installation Steps

There will be prerequisite for every new packages installation, including GCC on Ubuntu 20.04 LTS. User with sudo privilige is required for GCC installation, also enough space storage for new binary files. Let’s start the installation process with several steps.

1.  Verifying the existing GCC, by querying GCC version. It was found, if the GCC is not installed yet on the system by submitting command line below.

ramans@otodiginet:/$ gcc --version

GCC version

2. Update an existing system, it can be submit the command line below.

ramans@otodiginet:/$ sudo apt update

GCC install - update system

3. Install build-essential on the system, by submitting command line below.

ramans@otodiginet:/$ sudo apt install build-essential

install build essential on ubuntu 20.04

4. Checking the gcc version, after installation process, by using command line.

ramans@otodiginet:/$ gcc --version

The output will be :

gcc (Ubuntu 9.3.0-10ubuntu2) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

gcc --version

 

 

 

Share this article via :

One thought on “How To Install GCC On Ubuntu 20.04 LTS

Leave a Reply

Your email address will not be published. Required fields are marked *