How to install gcc on centos

王林
Release: 2020-03-18 10:36:28
Original
3612 people have browsed it

How to install gcc on centos

It is very easy to install using the yum command.

The command is as follows:

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

Recommended tutorial: centos usage tutorial

Manually install gcc

1. Install from CentOS7 system Remove the required rpm packages from the image (you can also obtain them through other methods): Unzip the image file and enter the "Packages" directory. There are many rpm packages in it. Take out the following ones:

How to install gcc on centos

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 on centos

can also be used Install uniformly with the following command:

rpm -Uvh *.rpm --nodeps --force
Copy after login

Recommended related video tutorials: linux video tutorial

The above is the detailed content of How to install gcc on centos. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!