How to install gcc in ubuntu?

by keegan.towne , in category: Installation & Upgrades , a year ago

How to install gcc in ubuntu?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer


by anissa , 9 months ago


To install GCC on Ubuntu, follow these steps:

  1. Open a terminal window by pressing Ctrl+Alt+T.
  2. Update the package manager's package list by typing sudo apt update and pressing Enter.
  3. Install GCC and other required tools by typing sudo apt install build-essential and pressing Enter. This will install GCC, as well as other development tools such as make and g++.

Once the installation is complete, you can verify that GCC was installed successfully by typing gcc --version and pressing Enter. This should display the version of GCC that was installed.

Alternatively, you can install specific versions of GCC by installing the gcc-X package, where X is the version number. For example, to install GCC 8, you can type sudo apt install gcc-8.