How to install the gcc compiler on Linux.
To install the GCC compiler on a Linux system, you can use a package manager. Here is how to do it:
- Open the Terminal.
- Install gcc on Debian/Ubuntu system using the command: sudo apt-get install gcc.
- Install gcc on CentOS/Fedora systems using the following command: sudo yum install gcc.
- After executing the command, the system will automatically download and install the GCC compiler along with its related dependencies.
- Check the version of gcc.
Note: Installation of GCC requires administrator privileges, so you may need to enter an administrator password.