Ubuntu 14.04 Upgrade GCC 4.8 to GCC 5.x

Source: Internet
Author: User

Brief introduction

Some of the software is newer and requires a higher GCC version, so you need to upgrade GCC. Compiling and installing is time consuming, so it is good to choose bin package directly.

Steps

Add source

1 sudo add-apt-repository ppa:ubuntu-toolchain-r/test2sudo apt-get update

Install dependent packages (this is required if an error occurs)

1 sudo Install Software-properties-common

Upgrade Installation

1 sudo Install gcc-5 g++-5

Update link

1 sudo ln -s/usr/bin/gcc-5 /usr/bin/gcc -f2sudoLn -s/usr/bin/g++-5 /usr/bin/g++-F

View version

Reference

Http://www.cnblogs.com/BlackStorm/p/5183490.html

Http://www.cnblogs.com/loveidea/p/4384837.html

Ubuntu 14.04 Upgrade GCC 4.8 to GCC 5.x

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.