Centos6.5 installation of GCC encountered problems and solutions

Source: Internet
Author: User

Installing GCC previously seemed smooth, but I don't know what's going on today. An error has been used to install GCC using the Yum command on a virtual machine on a centos system.

The installation instructions I perform are: yum-y install gcc gcc-c++ kernel-devel

Error content (part):

Error Downloading Packages:

mpfr-2.4.1-6.el6.x86_64:failure:packages/mpfr-2.4.1-6.el6.x86_64.rpm from base: [Errno 256] No more mirrors to try.

libgomp-4.4.7-17.el6.x86_64:failure:packages/libgomp-4.4.7-17.el6.x86_64.rpm from base: [Errno 256] No more mirrors to Try.

gcc-c++-4.4.7-17.el6.x86_64:failure:packages/gcc-c++-4.4.7-17.el6.x86_64.rpm from base: [Errno 256] No more mirrors to Try.

libgcc-4.4.7-17.el6.x86_64:failure:packages/libgcc-4.4.7-17.el6.x86_64.rpm from base: [Errno 256] No. mirrors to TR Y.

cpp-4.4.7-17.el6.x86_64:failure:packages/cpp-4.4.7-17.el6.x86_64.rpm from base: [Errno 256] No more mirrors to try.

libstdc++-4.4.7-17.el6.x86_64:failure:packages/libstdc++-4.4.7-17.el6.x86_64.rpm from base: [Errno 256] No more Mirrors to try.

gcc-4.4.7-17.el6.x86_64:failure:packages/gcc-4.4.7-17.el6.x86_64.rpm from base: [Errno 256] No more mirrors to try.

cloog-ppl-0.15.7-1.2.el6.x86_64:failure:packages/cloog-ppl-0.15.7-1.2.el6.x86_64.rpm from base: [Errno 256] No more Mirrors to try.

ppl-0.10.2-11.el6.x86_64:failure:packages/ppl-0.10.2-11.el6.x86_64.rpm from base: [Errno 256] No more mirrors to try.

libstdc++-devel-4.4.7-17.el6.x86_64:failure:packages/libstdc++-devel-4.4.7-17.el6.x86_64.rpm from base: [Errno 256 ] No more mirrors to try.

Read the error of the newspaper that is, the mirror can not find, that is, the source did not find; then I went to search the Internet, see the following method to solve:

[Errno 256] No more mirrors to try. Knowing that this could be the wrong cache source, direct two commands are resolved:
Yum Clean All
Yum Makecache

But when I do this here to Yum makecache This instruction is still the following error:

Could not retrieve Mirrorlist Http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error is

14:pycurl ERROR 6-"couldn ' t resolve Host ' mirrorlist.centos.org '"

Error:cannot Retrieve repository metadata (Repomd.xml) for repository:base. Please verify its path and try again

[Root@app softback]# yum-y install gcc gcc-c++ kernel-devel

Could not retrieve Mirrorlist Http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error is

14:pycurl ERROR 6-"couldn ' t resolve Host ' mirrorlist.centos.org '"

Error:cannot Retrieve repository metadata (Repomd.xml) for repository:base. Please verify its path and try again

[Root@app softback]# yum install gcc-c++ libstdc++-devel

Could not retrieve Mirrorlist Http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error is

14:pycurl ERROR 6-"couldn ' t resolve Host ' mirrorlist.centos.org '"

Error:cannot Retrieve repository metadata (Repomd.xml) for repository:base. Please verify its path and try again

This problem occurs when the domestic server runs the command yum-y install wget

This error is due to no configuration of/etc/resolv.conf.
Workaround: Edit resolv.conf file, add: NameServer 8.8.8.8

Then save the exit.


Then after the execution of the Yum Makecache instructions, and so on after the end of the instructions to install GCC instructions, you can install the success!



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.