0

I recently installed gcc 4.9, with a previous version of gcc that was installed by default before.

When I type gcc, the previous version of gcc runs. How could I make my newly installed gcc 4.9 run when I type gcc?

manlio
  • 18,345
  • 14
  • 76
  • 126
PuffySparrow
  • 897
  • 3
  • 10
  • 23

1 Answers1

1

You should do this:

cd /usr/bin
mv gcc gcc-old
ln -s gcc-4.9 gcc

Or you should have a look to gcc_select

Julio
  • 2,493
  • 4
  • 33
  • 53