How do you install the GCC compiler and related development tools on Ubuntu?

0140

To install the GCC compiler and related development tools on Ubuntu, you can use the following commands in the terminal:

  1. Update the package list:
sudo apt update
  1. Install GCC and the build-essential package, which includes essential development tools:
sudo apt install -y build-essential

The -y flag automatically answers "yes" to any prompts during the installation process.

  1. Verify the installation by checking the GCC version:
gcc --version

This will display the installed version of GCC.

0 Comments

no data
Be the first to share your comment!