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!