7

How to Install GCC Compiler on Ubuntu

 1 year ago
source link: https://www.laravelcode.com/post/how-to-install-gcc-compiler-on-ubuntu
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

How to Install GCC Compiler on Ubuntu

  398 views

  11 months ago

Ubuntu

GCC is a common compiler of multiple programming languages including C, C++, Java etc. Many open source projects are compiled using GCC.

In this article, we will cover step by step to install GCC in Ubuntu. This will aply for 20.04, 18.04 and 16.04 LTS distribution system.

Prerequisites: To install GCC in your system, you must be logged in as sudo user.

Step 1: Update the package repository

Update package repository list to latest with bellow command.

sudo apt-get update

Step 2: Install essential build packages

Now install the build-essential package as it is required, it will also install gcc, g++, make etc.

sudo apt-get install build-essential

Step 3: Install manual pages

Install manpages-dev package which provides all manual details for the softwares.

sudo apt-get install manpages-dev

Step 4: Check GCC version

If you want to check that GCC is successfully installed in your system, run bellow command. It will print current gcc version

gcc --version

Congratulations, GCC is now installed in your system and you can now start compiling. For more information on GCC, visit the official documentation page.

Author : Harsukh Makwana
Harsukh Makwana

Hi, My name is Harsukh Makwana. i have been work with many programming language like php, python, javascript, node, react, anguler, etc.. since last 5 year. if you have any issue or want me hire then contact me on [email protected]


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK