Because the RPM packages in the lab are filtered out, the yum in centos cannot download and install software. Use make to compile various software source code and find no GCC, G ++. The installation must be performed offline. If Yum cannot download the RPM package, you can download the RPM package at the following address. I don't know why.
Search information on the internet installed successfully, GCC and G ++ RPM package http://fr2.rpmfind.net/linux/rpm2html/search.php? Query = gcc-C % 2B % 2B & submit = SEARCH +... & system = & arch =
Find the compressed package of the corresponding operating system according to the search. My operating system is centos6.5 looking for the following compressed packages
Cloog-ppl-0.15.7-1.2.el6.i686.rpm
Cpp-4.4.7-4.el6.i686.rpm
Gcc-c4.4.7-4.el6.i686.rpm
Glibc-devel-2.12-1.132.el6.i686.rpm
Glibc-headers-2.12-1.132.el6.i686.rpm
Kernel-headers-2.6.32-431.el6.i686.rpm
Libgomp-4.4.7-4.el6.i686.rpm
Libstdc-devel-4.4.7-4.el6.i686.rpm
Mpfr-2.4.1-6.el6.i686.rpm
Ppl-0.10.2-11.el6.i686.rpm
Gcc-C ++-4.4.7-4. el6.i686. rpm
Installation sequence after download:
Rpm-ihv kernel-headers*
Rpm-ihv glibc-headers*
Rpm-ihv glibc-devel*
Rpm-ihv mpfr *
Rpm-ihv ppl*
Rpm-ihv CPP*
Rpm-ihv cloog-PPL*
Rpm-ihv gcc
G ++ installation sequence:
Rpm-IVH libstdc ++-devel*
Rpm-VL gcc-C ++ *
No error occurs during installation. I wrote two programs GCC, and g ++ compiled normally.
This article is from the "Diary-gcc-RPM installation" blog and is not reposted!