Ubuntu 16.04 GCC 5.4 Downgrade for 5.3__ depth learning

Source: Internet
Author: User

One thing to note is that the GCC version of ubuntu16.04 is 5.4, and the latest cuda8.0 seems to be compatible with gcc5.4, where the downgrade method is written for later use.

1, download the GCC source https://ftp.gnu.org/gnu/gcc/gcc-5.3.0/


2, decompression
CD down
sudo tar-zxvf gcc-5.3.0.tar.gz (decompression)

3, download the required dependencies of the compilation
CD gcc-5.3.0//  to unpack the GCC folder
sudo./contrib/download_prerequisites    //Download Dependency
CD.  


4, set up the compilation output directory
mkdir gcc-build-5.3.0

5, into the output directory, generate makefile files
CD gcc-build-5.3.0
sudo  . /gcc-5.3.0/configure--enable-checking=release--enable-languages=c,c++--disable-multilib

6, compile

About 20 minutes.

sudo make-j4
7. Installation

sudo make install

8. Check version

GCC--version
g++--version



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.