The GNU Compiler Collection (GCC) is a compiler system produced by the GNU Project supporting various programming languages. The GNU Compiler Collection includes front ends for C, C++, Objective-C, Go,D and etc., as well as libraries for these languages.
Update the packages using the command below,
$ sudo apt update
Then, install the build-essential packages by the command below, this going to be installed including gcc, g++ and make.
$ sudo apt install build-essential
You may also want to install the manual pages about using GNU/Linux for development:
$ sudo apt-get install manpages-dev
or another way is executing the command below,
$ sudo apt install gcc
If you would like to validate that the GCC compiler is successfully installed in an instance, use the command below, will show the version information.
$ sudo gcc --version
gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
Copyright (C) 2017 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.
Comments (0)