Because vmware installed centos 6.2 (64-bit) desktop, but the installation of vmware tools failed, the gcc version was accidentally upgraded from 4.6.6 to 4.6.7, so the gcc downgrade began.
First, yum erase gcc
And then reinstalls gcc from the http://blog.csdn.net/vah101/article/details/17677451 and centos installation disc of this Article
1. rpm-ecpp-4.4.7
2. rpm-ivhcpp-4.4.6-3.el6.x86_64.rpm
3. rpm-Ukernel-headers-2.6.32-220.el6.x86_64.rpm -- oldpackage
4. rpm-ivhkernel-headers-2.6.32-220.el6.x86_64.rpm
5. rpm-e glibc-2.12-1.132.el6.i686
6. rpm-Uvh glibc-2.12-1.47.el6.x86_64.rpm glibc-common-2.12-1.47.el6.x86_64.rpm -- force -- nodeps -- oldpackage
7. rpm-e glibc-headers-2.12-1.132.el6.x86_64 glibc-devel-2.12-1.132.el6.x86_64 compat-gcc-34-3.4.6-19.el6.x86_64 compat-gcc-34-g77-3.4.6-19.el6.x86_64 compat-gcc-34-c + +-3.4.6-19. el6.x86 _ 64
8. rpm-ivhglibc-headers-2.12-1.47.el6.x86_64.rpm
9. rpm-ivhglibc-devel-2.12-1.47.el6.x86_64.rpm
10. rpm-e libgomp-4.4.7 gettext-0.17-16.el6.x86_64 gettext-devel-0.17-16.el6.x86_64 redhat-lsb-4.0-3.el6.centos.x86_64 intltool-0.41.0-1.1.el6.noarch
11. rpm-ivhlibgomp-4.4.6-3.el5.x86_64.rpm
12. rpm-e libstdc ++ devel-4.4.7
13. rpm-e libstdc ++-4.4.7-4. el6.x86 _ 64
14. rpm-ivh gcc-c ++-4.4.6-3. el6.x86 _ 64.rpm libstdc ++-4.4.4.6-3. el6.x86 _ 64.rpm libstdc ++-devel-4.4.6-3.el6.x86_64.rpm -- oldpackage
To achieve this, the general principle is to uninstall the new version of the library and the dependent library when the oldpackage installation fails, and then install the old version of the library.
This project is time-consuming and may have better methods!