PDA

View Full Version : [SOLVED] How to install g++4.1 in Ubintu 10.10



tommpogg
November 2nd, 2010, 03:02 PM
Hi,

I would like to install the g++4.1 compiler on my Ubuntu 10.10, bu the version 4.1 of g++ has been removed from the available packages (now starting from version 4.3).

Does anyone knows where can I retrieve and install g++4.1? (Possibly by using Synaptic)

Thank you

tommpogg
November 17th, 2010, 05:24 PM
Hi, I solved the problem by manually installing g++-4.1. This is what I have done:

1) Install texinfo (e.g. apt-get install texinfo)
2) Download gcc-4.1.2 from http://gcc.gnu.org/ (gcc-4.1.2 contains g++-4.1)
3) Extract it and lauch "configure"; you can use the option --prefix=GCCPATH to set the installation path.
4) Open the Makefile and modify the line

MAKEINFO = /opt/GNUARM/newlib-1.15.0/missing makeinfo
to
MAKEINFO = makeinfo

5) launch "make"
6) launch "make install"

Notice: steps 1 and 3 are required to fix a bug in gcc-4.1.2's installation files

It is a little bit complicated but it works!

dino99
November 17th, 2010, 06:10 PM
find it there:

http://packages.ubuntu.com/search?keywords=gcc-4.1-multilib

tommpogg
November 24th, 2010, 09:19 AM
find it there:

http://packages.ubuntu.com/search?keywords=gcc-4.1-multilib

Thank you for the suggestion.
The question is: do I have to download and install all the dependencies one by one?
If yes, I believe that a manual installation is faster.