Home  >  Article  >  Operation and Maintenance  >  Does centos come with gcc locally?

Does centos come with gcc locally?

WBOY
WBOYOriginal
2022-04-26 16:33:414609browse

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.

Does centos come with gcc locally?

The operating environment of this article: centos 7 system, Dell G3 computer.

Does centos come with gcc locally?

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

Does centos come with gcc locally?

Execution: yum install gcc-c

Does centos come with gcc locally?

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:Does centos7 have links?Next article:Does centos7 have links?