Linked Questions

80 votes
7 answers
280k views

Getting + installing gcc/g++ 4.9 on Ubuntu? [duplicate]

How do I install the latest version of gcc and g++? I am using a variety of C++11 and C++1y features; which is why I need this.
  • 2,422
55 votes
3 answers
169k views

How to install the latest g++(currently 5.1) in Ubuntu(currently 14.04)? [duplicate]

This question always bothers me! Last time for 4.9 I tried the commands mentioned in this answer for g++4.9. The same trick doesn't work now: sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo ...
  • 2,227
29 votes
2 answers
156k views

How can I update gcc 5.3 to 6.1? [duplicate]

After installing Ubuntu 16.04 LTS, I found that gcc 5.3 installed by default but I don't receive any updates to gcc. I opened up GCC website and I found the new release 6.1. How do I update? Output ...
user avatar
37 votes
2 answers
53k views

How can I install and use gcc 6 on xenial? [duplicate]

I wish to test existing software with gcc 6, to ensure that it will work when the transition takes place. How can I install gcc 6? Is there a ppa available? Can I just do a "CC=gcc-6 make" ? ...
4 votes
1 answer
20k views

How do I use the latest GCC on Ubuntu? (Ubuntu 18.04; gcc 8.1) [duplicate]

Ubuntu currently provides gcc version 7.3, however gcc version 8.1 is currently available. I'd like to install gcc 8.1 alongside gcc 7.3 (so that if I call c++ it invokes the version from gcc 7.3, and ...
4 votes
3 answers
30k views

How to get the latest version of gcc on ubuntu 16.04 lts [duplicate]

Hey guys i am new to this just started studying computer science and programming and this is the first time im using linux. So how to get the latest version of gcc on ubuntu or does it make a ...
8 votes
1 answer
19k views

How do I install gcc 6 (latest 6.1?) on Ubuntu 14.04 LTS, make c++14 the default and will my libraries work? [duplicate]

How do I install gcc 6 (latest 6.1?) on Ubuntu 14.04 LTS, make c++14 the default and will my libraries work? Also, what problems can I expect if any? Lastly, please walk me through this because i am ...
7 votes
1 answer
6k views

Need a PPA for the latest GCC [duplicate]

I'm looking for a PPA with the latest and greatest version of GCC. I'm too scared to switch to something totally unstable and knock my production system out of wack, but want the newest version of GCC....
  • 277
1 vote
2 answers
6k views

Having 2 versions of gcc [duplicate]

I have just installed gcc 4.7 from ppa repository. Ubuntu 12.04 already comes with 4.6. When I use command: gcc --version It tells me it is 4.6.3 to be exact. I have no idea of how to launch the 4....
4 votes
0 answers
3k views

Installing GCC 6.0 in Ubuntu Linux 14.04 LTS [duplicate]

I want the latest version of GCC, namely the GCC 6.0, for running a software. The linux version installed is 14.04 LTS. Every time I am trying to upgrade the GCC version I am ending up installing the ...
  • 51
1 vote
0 answers
2k views

Install gcc, g++ and cmake3 [duplicate]

How can I install gcc6.4, g++6.4 and cmake3 on Ubuntu 14.04? I want to rewrite below lines that run on Linux to be run on Ubuntu $ yum install gcc64-c++ libcurl-devel $ export CC=gcc64 $ export CXX=...
0 votes
0 answers
44 views

How to upgrade C++ version? [duplicate]

I'm unfamiliar with C++, but something that I am trying to build requires the C++ version to be C++ 20 (it uses some features that only cpp 20 has apparently). I believe my current version is lower ...
  • 1
0 votes
0 answers
24 views

How to update GCC to 11.2 [duplicate]

Today I installed Ubuntu 20.04 (first time using Linux) and I'm having trouble with updating GCC to 11.2 (latest stable version). I checked another question and tried it but after updating it, it's ...
283 votes
9 answers
634k views

How to choose the default gcc and g++ version?

So I have installed gcc-4.4 and gcc-4.3 (same for g++). Now as far as I remember there is a tool in Ubuntu which sets the symlinks for you if you just tell it which version you want. However it does ...
  • 3,071
132 votes
9 answers
457k views

GLIBCXX_3.4.20 not found, how to fix this error?

Whey I try to run the program Layout Editor (available on this site) on Ubuntu 14.04.1 64-bit LTS I get the following output in the terminal: $ layout layout: /usr/lib/x86_64-linux-gnu/libstdc++.so.6:...
  • 2,213

15 30 50 per page