=================================================== Getting pre-requisites building GCC 4.6.2 on Ubuntu =================================================== This shows you how to get all the pre-requisites as specified on http://gcc.gnu.org/install/prerequisites.html. Ubuntu 11.10 or 12.04 --------------------- # Easy to get build dependencies for gcc-4.6.x sudo apt-get build-dep gcc-4.6 Ubuntu 11.04 (and maybe older) ------------------------------ # As gcc-4.6 is not in the repositories, we need to get the packages manually sudo apt-get install libgmp3-dev libmpfr-dev libmpc-dev libppl0.11-dev libcloog-ppl-dev # On some older versions of Ubuntu you might have libppl0.10-dev instead of libppl0.11-dev. ============================ Doing the full 3-stage build ============================ In the following: $BUILD stands for build path, $SOURCE for GCC source path, and $INSTALL stands for GCC installation path. All must be distinct. : cd $BUILD $BUILD: $SOURCE_D/configure --enable-languages=c --prefix=$INSTALL $BUILD: make # This can take about an hour $BUILD: make install