Linked Questions

80
votes
7answers
277k 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.
53
votes
3answers
162k 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 ...
28
votes
2answers
143k 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 ...
37
votes
2answers
52k 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
1answer
18k 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 ...
3
votes
3answers
27k 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
1answer
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
1answer
5k 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....
1
vote
2answers
5k 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
0answers
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 ...
1
vote
0answers
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
0answers
41 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 ...
259
votes
7answers
569k 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 ...
121
votes
8answers
414k 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:...
125
votes
2answers
116k views

What exactly does `update-alternatives` do?

What is the command update-alternatives used for? Take this example: sudo update-alternatives --install /usr/bin/java java /usr/local/java/jre1.7.0_09/bin/java 1 What does it do? How is it ...

15 30 50 per page