I have gcc 4.6.2 installed (installed from tar source) in my ubuntu server 10.10 64 bit, I have also installed gcc 4.4.5. I want to uninstall gcc 4.6.2 and make my old gcc 4.4.5 default. How can I do this?
migrated from superuser.com Feb 4 '12 at 21:41
This question came from our site for computer enthusiasts and power users.
Don't need to uninstall
which will allow you to choose what is your default compiler. Uninstalling
First, don't change the default compiler used by your OS super-user. The packaging guys have carefully tested that everything works with 4.6, and if you change that you risk destabilizing your system, and that could end badly.
What you can do is adjust the default compiler for yourself only by simply altering the PATH variable in your shell setup.
So, simply add this: