In step #6 you probably may want to advice to use update-alternatives instead of manually removing symlinks, e.g.:
(save default gcc that comes with Ubuntu 12.04)
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.4 10
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.4 10
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.7 30
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 30
Make 4.7 the default one:
sudo update-alternatives --auto g++
sudo update-alternatives --auto gcc
PS in step #1 `sudo apt-get install git` is enough, git-core is meta-package needed only for Debian Lenny AFAIR.
↧