How to install the gcc compiler on Ubuntu?
To install the GCC compiler on Ubuntu, you can follow these steps:
- Open the terminal quickly by pressing Ctrl + Alt + T.
- Enter the command below in the terminal to update the package list:
- Update the apt package manager by running this command with superuser privileges.
- Install the GCC compiler and related build tools.
- Please install the build-essential package using the following command: sudo apt install build-essential.
- This will install the GCC compiler, GNU make, and other building tools.
- Please enter your administrator password and press the Enter key.
- Waiting for the installation to complete.
After installation, you can verify if the GCC compiler has been successfully installed by typing ‘gcc –version’ in the terminal.