Install GCC on Ubuntu
The steps to install GCC on an Ubuntu system are as follows:
- Open the terminal and update the software package list using the following command: sudo apt update.
- Install GCC using the following command: sudo apt install gcc
- Enter your password and press the Enter key, then wait for the installation to be completed.
- Check if GCC is successfully installed by using the following command: gcc –version.
- If installation is successful, the version number of GCC will be displayed.
Before installing GCC, make sure that the necessary build tools, such as libraries and header files required for building local software packages, are already installed. You can install these tools using the command: sudo apt-get install build-essential.