http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52740
--- Comment #3 from mohammadsohaibajmal at gmail dot com 2012-03-28 19:07:57 UTC --- I have GLIBCXX_2.5 installed on my computer and I need version 3.4.9 or higher. I needed to install version 4 or higher for gcc so I randomly chose to install gcc-4.4.0. I can try 4.4.7 also However, all steps I performed and errors I encounetred are imentioned below Although I am not sure the error messages I got are sufficiently helpful or not. After downloading GCC and placing it in a directory I ran its configuration script /Gcc/gcc-4.4.0/configure --target=/usr/local/gcc-4.4.0/ It gave me error saying mpfr and gmp needs to be installed. I downloaded gmp version 5.0.4 and mpfr version 3.1.0. For installing gmp I simply ran following commands ./configure make make install Everything executed pretty smoothly. Afterwards for installing mpfr I followed its instruction and first applied patch inside mpfr folder,as directed in INSTALL file curl http://www.mpfr.org/mpfr-3.1.0/allpatches | patch -N -Z -p1 patch was applied successfully Afterwords I executed ./configure This gave me following WARNING at the end of execution configure: WARNING: ========================================================== configure: WARNING: 'gmp.h' and 'libgmp' seem to have different versions or configure: WARNING: we cannot run a program linked with GMP (if you cannot configure: WARNING: see the version numbers above). A cause may be different configure: WARNING: GMP versions with different ABI's or the use of --with-gmp configure: WARNING: or --with-gmp-include with a system include directory configure: WARNING: (such as /usr/include or /usr/local/include). configure: WARNING: However since we can't use 'libtool' inside the configure, configure: WARNING: we can't be sure. See 'config.log' for details. configure: WARNING: ========================================================== At the end it said that creating Makefile etc. Afterwards I ran make make check make install No error appeared in this whole procedure except for above mentioned warning. Afterwards I again ran configure script of gcc as mentioned above, which finished succefully saying "creating Makefile" /Gcc/gcc-4.4.0/configure --target=/usr/local/gcc-4.4.0/ But when I ran make it gave me following error as in my first post make [2]: Leaving directory '/root/fixincludes' make [1]: *** [all-fixincludes] Error 2 make [1]: Leaving directory '/root' make: *** [all] Error 2 This is all the erro rit showed me. I have no Idea what to do about it. If there is a better and stable version which can give me GLIBC3.4.9 I'll use that, and also can you please refer to me appropriate guide for installing GCC because the instructions available on this website has so many configurations that I do not know which one will be appropriate. Another Important point to note is after even the installation of mentioned versions of gmp and mpfr when I do rpm -qa|grep gmp and rpm -qa|grep mpfr the output I get is older version for gmp installed by distro and no output for mpfr? So I have not been able to install them properly despite no error I received, or any other configuration is requried. I followed their INSTALL guides in their folders. Thank you very much for assistance that you can provide in this regard.