Install GCC 4.8.1 on Ubuntu 13.04

Source: Internet
Author: User

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 Diagram

Install the cross-compiler arm-none-linux-gnueabi-GCC in Ubuntu 12.10

Install and use Vim + GCC + GDB in Ubuntu

Switch two GCC versions in Ubuntu

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.