Install GCC 3.4

Source: Internet
Author: User
Install GCC 3.4


F ** K, not to compile the 0.11 kernel.


Source code compilation has been put into practice-"No return", and various errors have been reported. I have at least four versions of GCC, all kinds of incompatibility. All kinds of nausea...


It was not completed just now. Use the Deb installation package to install GCC 3.4


Find the following Deb installation packages

Cpp-3.3_3.3.6-15ubuntu6_i386.deb // second to be installed
Gcc-3.3_3.3.6-15ubuntu6_i386.deb // the last to be installed
Gcc-3.3-base_3.3.6-15ubuntu6_i386.deb // first to be installed


Do not use the Ubuntu Software Center for installation. This will uninstall the installed High Version GCC by default!


Force installation: sudo dpkg -- force-depends-I XXX. Deb


At this time, we can see that there are two versions of GCC under/usr/bin /.



$ Sudo Update-alternatives -- install/usr/bin/GCC gcc/usr/bin/gcc-4.4
$ Sudo Update-alternatives -- install/usr/bin/GCC gcc/usr/bin/gcc-3.3


Switch version

$ Sudo Update-alternatives -- config gcc
There are two options available, both of which provide "GCC"
1/usr/bin/gcc-3.3 * +
2/usr/bin/gcc-4.4
To maintain the default value [*], press the Enter key or enter the selected number: 1.
Use '/usr/bin/gcc-3.3' to provide 'GCC ".


OK! Done













Install GCC 3.4

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.