2

I recently installed gcc-4.9 on Ubuntu 12.04 but when I type gcc -v it says gcc version 4.6.3.

The gcc 4.9 version was installed using the following command as root sudo apt-get install gcc-4.9

3
  • 5
    You will need to invoke it explicitly (i.e. gcc-4.9 instead of gcc) or modify the /usr/bin/gcc symlink, either manually or by putting gcc into the update-alternatives mechanism. Aug 2, 2014 at 13:33
  • GCC 4.9 is not available in Precise using the official repositories. I assume you added a PPA of some sort. See askubuntu.com/questions/182027/… to learn how to select the default GCC.
    – muru
    Aug 2, 2014 at 18:59
  • Muru-thanks for your informative comment. You are absolutely right that I added a PPA but my problem is that I cannot find the gcc-4.9 on my desktop. When I type which gcc-4.9 I get a blank. How do I find out where my gcc-4.9 got installed ?
    – gansub
    Aug 3, 2014 at 11:17

0

Browse other questions tagged .