I share a server (Ubuntu 11.04) with other people and I am the only one who has to use gcc 4-4 for my code, the rest is using 4.5. I already installed gcc 4.4 but how do I make it the default for me, without disturbing the others?
Clarification
The solution needs to work for Makefiles and such.
Update
I tried jw013 idea, but I think I screwed up. I created the symlink with ln -s /usr/bin/gcc-4.4 ~/bin/gcc and now my .bashrc wont load again. Here are the error messages:
Command 'lesspipe' is available in the following places
* /bin/lesspipe
* /usr/bin/lesspipe
The command could not be located because '/usr/bin:/bin' is not included in the PATH environment variable.
lesspipe: command not found
Command 'dircolors' is available in '/usr/bin/dircolors'
The command could not be located because '/usr/bin' is not included in the PATH environment variable.
dircolors: command not found
Command 'uname' is available in '/bin/uname'
The command could not be located because '/bin' is not included in the PATH environment variable.
uname: command not found
-bash: [: =: unary operator expected
Command 'sed' is available in '/bin/sed'
The command could not be located because '/bin' is not included in the PATH environment variable.
sed: command not found
Command 'ls' is available in '/bin/ls'
The command could not be located because '/bin' is not included in the PATH environment variable.
ls: command not found
$PATH. Did you change that recently? – jw013 Oct 7 '11 at 18:46export PATH="$HOME/bin"to my.bashrc. I am not sure, but removed the line after the errors and triedsource .bashrcwhich did not help. :/ – Framester Oct 7 '11 at 19:05PATHvalues which explains all the errors..bashrcis not the correct place to change$PATHbecause it is sourced on every new shell. You should do that in.profile. 2. Most default.profiles I've seen already include aif [ -d "$HOME/bin" ]; then PATH="$HOME/bin:$PATH"; fi. If yours doesn't you can just add it. – jw013 Oct 7 '11 at 19:09PATHvalues? My now corrected.bashrcand.profileonly return these above errors. – Framester Oct 7 '11 at 19:20