1

I'm trying to update to gcc 4.8.2. I have Ubuntu 12.04.

after this if I type gcc -v it says gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)

Next I typed

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.8

Then I try to check the gcc version by typing gcc -v it says that my version didn't change and I still have gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)

After typing gcc-4.8 -v I get 4.8 as the following:

gcc version 4.8.1 (Ubuntu 4.8.1-2ubuntu1~12.04)

Now my question turns into why isn't it finding gcc 4.8.2? How can I set it to use gcc 4.8 as the default when I use gcc -v?

Jorge Castro
  • 71,754
user21839
  • 81
  • 2
  • 2
  • 7

0 Answers0