Ubuntu13.04 install GCC4.8.1

Source: Internet
Author: User
Finally, you can upgrade your system by implementing C ++ 11 GCC4.8.1. The following steps can be performed to install GCC4.8.1, sudoadd-apt-repositoryppa: ubuntu-toolchain-r/testsudoupdate-alternatives -- remove-allgccsudoupdate-alternatives -- remove

Finally, the complete implementation of C ++ 11 GCC 4.8.1.

Upgrade your system.

The following steps can be performed to install GCC 4.8.1 in Ubuntu 13.04,

Sudo add-apt-repository ppa: ubuntu-toolchain-r/test
Sudo update-alternatives -- remove-all gcc
Sudo update-alternatives -- remove-all g ++
Sudo apt-get install gcc-4.8
Sudo apt-get install g ++-4.8
Sudo update-alternatives -- install/usr/bin/gcc/usr/bin/gcc-4.8 20
Sudo update-alternatives -- install/usr/bin/g ++-4.8 20
Sudo update-alternatives -- config gcc
Sudo update-alternatives -- config g ++

Sudo apt-get update
Sudo apt-get upgrade-y
Sudo apt-get dist-upgrade

Check with gcc -- version, which is 4.8.1.

Gcc -- version
Gcc (Ubuntu 4.8.1-2ubuntu1 ~ (13.04) 4.8.1
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
Warranty; not even for MERCHANTABILITY or fitness for a particle PURPOSE.

Recommended reading:

Ubuntu 12.04 embedded cross-compilation environment arm-linux-GCC build process graphic http://www.linuxidc.com/Linux/2013-06/85902.htm

Ubuntu 12.10 install the cross compiler arm-none-linux-gnueabi-GCC http://www.linuxidc.com/Linux/2013-03/82016.htm

Install and use http://www.linuxidc.com/Linux/2013-01/78159.htm with Vim + GCC + GDB in Ubuntu

Two GCC versions under Ubuntu switch http://www.linuxidc.com/Linux/2012-10/72284.htm

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

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.