Home>Article>Operation and Maintenance> How to install gcc compiler on centos system

How to install gcc compiler on centos system

王林
王林 Original
2020-03-20 15:59:55 3469browse

How to install gcc compiler on centos system

Use the yum command to install, the command is as follows:

yum -y install gcc gcc-c++ kernel-devel //安装gcc、c++编译器以及内核文件

You can also install gcc manually, the method is as follows:

(Recommended tutorial:centos usage tutorial)

1. Take out the required rpm package from the CentOS7 system installation image (it can also be obtained through other methods): Unzip the image file and enter the "Packages" directory, there are many in it rpm package, take out the following:

How to install gcc compiler on centos system

2. Upload these packages to the system to be installed [Xftp can be installed for uploading], and execute the installation commands in the following order:

How to install gcc compiler on centos system

You can also use the following command to install it uniformly:

rpm -Uvh *.rpm --nodeps --force

Recommended related video tutorials:linux video tutorial

The above is the detailed content of How to install gcc compiler on centos system. 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