If you are looking for installation of old version of gcc, then install directly from command line. For instance if you want install gcc-4.4.6, and latest available version is 4.7.3. If you type:
sudo apt-get install gcc
then by default latest version will be installed. To install gcc-4.4.6, just type:
sudo apt-get install gcc-4.4
But still your default compiler is latest gcc. To remove latest gcc as default type:
sudo rm /usr/bin/gcc
Now making gcc-4.4.6 as default compiler (this is replacement of gcc by gcc-4.4.x), type:
sudo ln -s /usr/bin/gcc-4.4 /usr/bin/gcc
Hope this will clarify above mentioned problem.
gcc-4.7the defaultgcc, or would you rather easily switchgccbetweengcc-4.6andgcc-4.7? – Rafał Cieślak Mar 17 '13 at 21:34configure: error: Compiler GCC >= 4.7 or Clang >= 3.0 is required for C compilation
– Sashko Lykhenko Mar 17 '13 at 21:35./configure,makeetc. commands withCC="gcc-4.7", e.g.CC="gcc-4.7" make. Anyway, as you have correctgcc --version, this seems to be a separate problem with webkit compilation. Also, maybe you need to clear it's build cache (get a fresh copy of sources). – Rafał Cieślak Mar 17 '13 at 21:54gccsymlink is a bad idea,gccshould be the compiler with which most software on the system, especially the kernel, was build, having a different version could cause bugs which would be difficult to pinpoint. If a specific version of GCC is needed to compile a specific program, it should be defined in the relevant Makefiles (or whatever build system the program uses) using theCCvariable (as @RafałCieślak correctly notes). – fkraiem Jul 11 '14 at 10:23