GCC is a GNU compiler suite that needs to be installed on a network with simple installation, but no network can install GCC? In fact, it is possible, the following small series to introduce the Linux without network installation GCC technology, together to understand the next bar.
Installing GCC in the event of a network requires only one instruction: Yum install gcc How do I install GCC without a network? Although there is no network, you need an installation CD or an ISO image to mount a local Yum source with an installation CD or an ISO image. Use this to install GCC.
Steps:
One: Mount Yum source, I am here with an ISO image in the terminal input command: Mount-o loop xxxx.iso/media/centos/
Description: Xxxx.iso is your mirror filename (note that the path is correct)
/media/centos/This is mounted after the file address, Centos is built by himself, you can also choose their own path;
II: Modify/etc/yum.repos.d/centos-media.repo
1. First enter the document: Vi/etc/yum.repos.d/centos-media.repo
2. The revised document reads as follows:
[C6-media]
name=centos-$releasever-media #名字而已
Baseurl=file:///media/centos #还记得你刚刚挂载镜像的地址不, yes, that's it.
Gpgcheck=1
Enabled=1
Gpgkey=file:///etc/media/centos/rpm-gpg-key-centos-6 #还是要注意路径
3. Exit save.
4. Input directive: Gcc-v See if there is any reaction.
The above is the Linux no network installation GCC technology introduced, if you want to have the installation of CD-ROM or ISO image, you can not install, although no network can install GCC, but relatively will copy a lot, the recommended use of the network installation GCC.