G Compiler For Ubuntu 13.04

You have two gfortran packages installed: gfortran plain (version 4.8.4) and gfortran-4.9 (version 4.9). When you run gfortran in a regular terminal, you're actually running version 4.8.4, as you've noticed. In order to force your system to use the 4.9 version, try running gfortran-4.9 from the terminal. Now, in theory, you could force gfortran-4.9 to be called from gfortran, but this is not recommended. If you want to ignore this warning, do this: • Back up and remove the existing gfortran binary. Sudo mv /usr/bin/gfortran /usr/bin/gfortran.bak sudo rm /usr/bin/gfortran • Link gfortran-4.9 to the old one: ln -s /usr/bin/gfortran-4.9 /usr/bin/gfortran Note that you will lose this if you actually update the regular gfortran package, so keep this in mind. For a slightly more permanent alteration that runs no risk of breaking your system (with the downside that it only works in a terminal), you could also assign gfortran to be an alias of gfortran-4.9 by running this: echo 'alias gfortran=gfortran-4.9' >>~/.bashrc Restart any Bash sessions, and gfortran should run version 4.9.

8 responses to How to Install GCC 4.8 via PPA in Ubuntu 12.04, 13.04, 10.04. I use your PPA to update gcc compiler from 4.8.2 to 4.9 on ubuntu. But is does not. 8 responses to How to Install GCC 4.8 via PPA in Ubuntu 12.04, 13.04, 10.04. GNU C compiler gcc-4.6 GCC, the GNU Compiler Collection (base package).

G  Compiler For Ubuntu 13.04

I can't add comments in Ask Ubuntu yet, but I wanted to make a note to these answers in-case others trying to install GCC 4.8 run into the same issues as I did. When I got to the commends: sudo update-alternatives --remove-all gcc sudo update-alternatives --remove-all g++ I got the responses: update-alternatives: error: no alternatives for gcc update-alternatives: error: no alternatives for g++ On top of that, after running through the rest of the steps, running gcc --version still says its version 4. Funky Collector Rapidshare. 7, though 4. Fullmetal Alchemist Sham. 8 is installed.

Running ls -l /usr/bin/gcc* and ls -l /usr/bin/g++* shows th – Jul 14 '13 at 16:20 •. Use the mirrors listed and download the 4.8.1. The process is pretty straightforward.

I would recommend to use this 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. Msdaora.dll 64 Bit. 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: sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update this will add the new PPA to the other sources. Then unistall the alternative: sudo update-alternatives --remove-all gcc sudo update-alternatives --remove-all g++ then: sudo apt-get install gcc-4.8 sudo apt-get install g++-4.8 and as the alternative packages install: sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20 sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 20 sudo update-alternatives --config gcc sudo update-alternatives --config g++ at the end: sudo apt-get update sudo apt-get upgrade -y sudo apt-get dist-upgrade Hope this changes the --version;).