The GNU Compiler Collection (GCC) is an open-source collection of compilers and libraries supporting C, C++, Objective-C, Fortran, Ada, Go, and D programming languages. The Linux kernel, the GNU utilities, and many other projects are compiled with GCC.
This tutorial explains how to install the GCC compiler on Debian 10, Buster. The same instructions apply for Debian 9 and any Debian-based distribution.
To install packages on your Debian system, you must be logged in as a user with sudo privileges .
The default Debian repositories contain a meta-package named build-essential
that contains the GCC compiler and other libraries and utilities required for compiling software.
Follow the steps below to install the GCC Compiler Debian 10:
sudo apt update
build-essential
package by running:sudo apt install build-essential
sudo apt-get install manpages-dev
gcc --version
:gcc --version
8.3.0
:gcc (Debian 8.3.0-6) 8.3.0
Copyright (C) 2018 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.
That’s it. You have successfully installed GCC on your Debian machine.
#linux