[] Centos Linux install gcc

1, see the GCC Linux is installed, in a terminal: gcc gcc -v or

image.png

2, enter in a terminal: yum install gcc, but the command-line prompt without root privileges

image.png

3, modify the command input: sudo yum install gcc, download GCC

image.png

4, and then fill in the appropriate values ​​in accordance with message box needs to download the package

image.png

5. Verify that the installation was successful: gcc -v

image.png

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

Guess you like

Origin www.cnblogs.com/myfaith-feng/p/12359709.html