Downgrade gcc under centos

Source: Internet
Author: User
Because vmware installed centos6.2 (64-bit) desktop version, but the vmwaretools installation failed, the gcc version was accidentally upgraded from 4.6.6 to 4.6.7, so the gcc downgrade began. First, yumerasegcc is better

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-e cpp-4.4.7

2. rpm-ivh cpp-4.4.6-3.el6.x86_64.rpm

 

3. rpm-U kernel-headers-2.6.32-220.el6.x86_64.rpm -- oldpackage

4. rps-ivh kernel-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-ivh glibc-headers-2.12-1.47.el6.x86_64.rpm

9. rps-ivh glibc-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. rps-ivh libgomp-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!

Related Article

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.