I installed the compiler version of gcc-4.6.2 from sources,
tar xzf gcc-4.6.2.tar.gz cd gcc-4.6.2 ./contrib/download_prerequisites cd .. mkdir objdir cd objdir $PWD/../gcc-4.6.2/configure --prefix=$HOME/gcc-4.6.2 --enable languages=c,c++,fortran,go make make install however, when checking the version of gcc -version, version 4.7.2 is installed, which was installed earlier. How to switch between these versions?