The question Choose gcc and g++ version answers how to do it, but I could not figure out, if it only affects me or also all the other users of the system as I have to use sudo. I share a server (11.04) with other people and I am the only one who has to use gcc 4-4.
Asked
Active
Viewed 3,817 times
3
1 Answers
3
Set up personal links:
cd ~
mkdir bin
cd bin
ln -s /usr/bin/gcc-4.4 gcc
ln -s /usr/bin/g++-4.4 g++
Then, run this whenever you start a new shell, or add it to your .bash_profile, or whatever:
PATH=~/bin:$PATH
And you're done! :)
ams
- 3,089