Home > Article > Operation and Maintenance > Does centos come with gcc locally?
centos comes with gcc locally, and centos7 version comes with gcc4.8 version; gcc is a programming language converter developed by GNU. If it is not installed, you can use "yum -y install gcc gcc- c autoconf make" command to install.
The operating environment of this article: centos 7 system, Dell G3 computer.
The gcc/g version that comes with CentOS7 is 4.8. If it is not installed, you can install it through the yum command.
[root@localhost ~]yum -y install gcc gcc-c++ autoconf make
Because gcc/g 4.8 fully supports C 11, supports part of C 14, and does not support C 17. However, g 7 and above are fully supported by C 17:
I don’t recommend it. Installing GCC8. And it’s not necessarily that stable.
Based on the principle of just enough, GCC7.5 fully supports C 17 and is the most ideal choice.
Use ym to install:
yum install gcc yum install gcc-c++
Execution: yum install gcc
Execution: yum install gcc-c
In this way, gcc is installed successfully and can be used.
Recommended tutorial: "centos tutorial"
The above is the detailed content of Does centos come with gcc locally?. For more information, please follow other related articles on the PHP Chinese website!