Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save SofijaErkin/9e55ac3cfde836639b075118f6e0c1f2 to your computer and use it in GitHub Desktop.
Save SofijaErkin/9e55ac3cfde836639b075118f6e0c1f2 to your computer and use it in GitHub Desktop.
upgrade gcc to support C++17 on debian

Debian Manually Upgrade GCC TO Support C++17

deps

gmp, mpfr, mpc, isl

download from source and compile install

cd 

wget https://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-7.3.0/gcc-7.3.0.tar.gz

Notice:

ERROR: The certificate of ‘ftp.mirrorservice.org’ is not trusted.

ERROR: The certificate of ‘ftp.mirrorservice.org’ has expired.

to fix the upstairs:

sudo wget http://mirrors.concertpass.com/gcc/releases/gcc-7.3.0/gcc-7.3.0.tar.gz

source

US, San Francisco: https://bigsearcher.com/mirrors/gcc/.

US, San Jose: http://www.netgull.com.

US, Michigan: http://mirrors.concertpass.com/gcc/.

refer

How to Install GCC on Debian 9.

How to switch between multiple GCC and G++ compiler versions on Ubuntu 20.04 LTS Focal Fossa.

Install and Use G++ on Ubuntu.

How can I install a specific version of gcc on ubuntu 18.04.

How to install GCC piece by piece with GMP, MPFR, MPC, ELF, without shared libraries?

Which versions of GMP, MPC, and MPFR were used to compile GCC?

Upgrade GCC on Linux(Chinese).

Upgrade GCC to 7.2.0 on Ubuntu(Chinese).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment