Friday, May 3, 2024
62
rated 0 times [  62] [ 0]  / answers: 1 / hits: 112857  / 3 Years ago, sun, june 6, 2021, 7:12:44

I wish to install gcc 4.7 so that I can use some c++11 features.



I downloaded the source, ran ./configure and was told I needed GMP. Downloaded the code for that, hit ./configure and was told I needed m4. But I already have m4 (least that is what synamptic tells me).



What is going on and how can I fix it?


More From » software-installation

 Answers
6

You can try this PPA for installing gcc 4.7. Do note that it has packages only for 12.04 and not for 11.10.



Run the following commands in a terminal:



sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.7


Or, if you prefer a graphical way of installing a PPA, take a look at What are PPAs and how do I use them?.


[#39834] Tuesday, June 8, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lintical

Total Points: 344
Total Questions: 122
Total Answers: 106

Location: Sint Maarten
Member since Mon, Oct 12, 2020
4 Years ago
;