banner



How To Install Gnu Linux

In this article, we will discuss how to install a GCC compiler on Linux.

GCC stands for GNU Compiler Collections which is used to compile mainly C and C++ language. It can also exist used to compile Objective C and Objective C++. The GCC is an open-source collection of compilers and libraries.

Allow's offset with the steps to install the GCC on Linux.

To install the GCC open the terminal on Linux.

The terminal takes the input from the user in the form of commands and displays the output on the screen. Hence we have to pass some commands to install the GCC.

Follow the commands stride by step to install the GCC.

Control i: The very first stride is to update the packages. This command is used to download packet information from all configured sources and to get the info of the updated versions of the packages.

sudo apt-get update

get updates first

control-1

Note: In the showtime command information technology volition ask for your countersign, make sure to enter the password correctly.

Control 2: At present we have to install the build-essential packages, which is also known as a meta-package, information technology contains the GCC compiler all the other essentials used to compile the software written in C and C++ language.

sudo apt install build-essential

build the dependencies

command-two

It will take some time to install all the essential packages.

Control iii: Later on the second command it will install GCC on your Linux, to verify it is installed correctly, check the version of the GCC.

gcc --version

check gcc version

command-3

Now, we have successfully installed the GCC on Linux.

Annotation: Versions may vary from time to fourth dimension.

Source: https://www.geeksforgeeks.org/how-to-install-gcc-compiler-on-linux/

Posted by: vegaherity.blogspot.com

0 Response to "How To Install Gnu Linux"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel