GCC with GCC-C ++, centos7gcc-c installed in/offline CentOS7 Environment

Source: Internet
Author: User

GCC with GCC-C ++, centos7gcc-c installed in/offline CentOS7 Environment

A few days ago in preparing the CentOS7 compilation environment, online installation of GCC and GCC-C ++ is very simple, as long as the machine is networked in the Terminal window in order to separate input

1 yum install gcc2 yum install gcc-c ++

You can complete the installation online, and centos images can be downloaded on the official website (https://www.centos.org/download.

It is troublesome to install it in the offline environment. After several days of exploration, the installation was successful in the offline environment.

First download the ISO file on the official website, I downloaded the CentOS-7-x86_64-DVD-1611.iso, after the installation is successful decompress the iso file, enter the Packages folder, copy the following. rpm file to the CentOS system.

Go to the directory where the. rpm file is stored in CentOS and run

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

Then use

1 gcc-v2 g ++-v

View the gcc version and g ++ version, you will see the detailed version information, offline environment installation GCC and GCC-C ++ is complete.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.