Originally Posted by grndfl
I'm having some trouble with my shell(konsole using Opensuse), I want to change the gcc command to use a different version of gcc. However I don't know how to do this.
You might want to use different paths. GCC versions are usually installed in separate locations and seem to use some path parsing to figure out where to find libraries. You can create a script
# Set the path to the desired gcc version
Then source the script using
[auser@amachine:~] . setpath
This will prefix your path with the path to the version you want to use and save your current path in OLDPATH.