To install the GNU GCC compiler and development environment on Ubuntu Linux, follow these steps:
- Update the package list:
sudo apt-get update
- Install the build-essential package: The
build-essential
package includes the GCC compiler and a number of other development tools. To install this package, run the following command:
sudo apt-get install build-essential
- Verify the installation: To verify that the GCC compiler is installed, run the following command:
gcc --version
This should display the version of the GCC compiler that is installed on your system.
With these steps, you should now have the GCC compiler and a full development environment installed on your Ubuntu Linux system. You can now use the compiler to build and compile C, C++, and other programs.