I have a 64 bit UBUNTU 13.04
running gcc –version shows me gcc (Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3
But on May 31 2013 gcc 4.8.1 was released . And I don't know how to install it ..
Can someone please explain me the steps that I need to do for successfull installation ..
Also please tell me whether I can have both the instances of gcc installed i.e 4.7.3 & 4.8. 1 or not ??
And after installation how can I point to the new gcc 4.8.1 ??
Best Answer
Use the mirrors listed Here and download the 4.8.1. The process is pretty straightforward. I would recommend to use this Procedure to complete your installation.
As you may know GCC doesn't support "make uninstall" and it has been suggested that you install GCC into a directory of its own and simply remove that directory when you do not need that specific version of GCC any longer. Hope this helped. Cheers
Edited: The Option 2:
I assume that you already have a former version of gcc, the easiest way could be adding PPA to your repositories and Update and upgrade you can have the latest version with no worries:
this will add the new PPA to the other sources.
Then unistall the alternative:
then:
and as the alternative packages install :
at the end:
Hope this changes the --version ;)