Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 10669  / 2 Years ago, tue, january 18, 2022, 9:20:00

Richard Holloway's answer to this thread nicely explains how to upgrade from 4.6.3 to 4.7.0 (on 12.04, in my case) but I would like to upgrade to 4.7.1, which has been available for awhile. However there is no package g++-4.7.1 and I don't know otherwise how to do it, does anyone else?


More From » upgrade

 Answers
4

Wow, this was excruciating. Here's how I did it (NB, for a 32-bit system):




  1. $sudo apt-get install gcc-multilib


  2. $sudo apt-get install m4


  3. Download mpfr, configure, make, make install


  4. Download gmp, configure, make, make install


  5. Download mpc, configure, make, make install


  6. In order to compensate for insufficient path information, added this to .bashrc





export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH



export LIBRARY_PATH=/usr/lib/i386-linux-gnu export



export C_INCLUDE_PATH=/usr/include/i386-linux-gnu export



export CPLUS_INCLUDE_PATH=/usr/include/i386-linux-gnu




the former I got from here and the latter from here, modified appropriately for my install locations.



.7. Add these symlinks for the same reason:




$sudo ln -s /usr/include/i386-linux-gnu/gnu/stubs-32.h /usr/include/gnu



$sudo ln -s /usr/lib/i386-linux-gnu/crti.o /usr/lib/crti.o



$sudo ln -s /usr/lib/i386-linux-gnu/crt1.o /usr/lib/crt1.o



$sudo ln -s /usr/lib/i386-linux-gnu/crtn.o /usr/lib/crtn.o



$sudo ln -s /usr/local/lib/libmpc.so.3
/usr/lib/libmpc.so.3




.8. Download g++-4.7.1, configure, make, make install


[#36540] Tuesday, January 18, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ainubt

Total Points: 496
Total Questions: 98
Total Answers: 126

Location: Sao Tome and Principe
Member since Wed, Dec 21, 2022
1 Year ago
;