1, see the GCC Linux is installed, in a terminal: gcc gcc -v or
2, enter in a terminal: yum install gcc, but the command-line prompt without root privileges
3, modify the command input: sudo yum install gcc, download GCC
4, and then fill in the appropriate values in accordance with message box needs to download the package
5. Verify that the installation was successful: gcc -v
Linux 安装指定版本GCC方法:https://blog.csdn.net/liboyang71/article/details/77152577
Linux 下多版本gcc共存:https://blog.csdn.net/yuhuqiao/article/details/87776516
gcc下载地址:https://ftp.gnu.org/gnu/gcc/ 或者 https://gcc.gnu.org/releases.html