How to install the gcc compiler on Ubuntu?

To install the GCC compiler on Ubuntu, you can follow these steps:

  1. Open the terminal quickly by pressing Ctrl + Alt + T.
  2. Enter the command below in the terminal to update the package list:
  3. Update the apt package manager by running this command with superuser privileges.
  4. Install the GCC compiler and related build tools.
  5. Please install the build-essential package using the following command: sudo apt install build-essential.
  6. This will install the GCC compiler, GNU make, and other building tools.
  7. Please enter your administrator password and press the Enter key.
  8. 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.

bannerAds