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.