Linux No network installation GCC technique (requires CD-ROM or ISO image)

Source: Internet
Author: User
Tags requires centos

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.

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.