Hi, Maybe this will help you? https://github.com/beurdouche/scripts/blob/master/build_gcc.sh This is working for me as it is so you should just have to replace with what you need ;) B. On 8/15/12 4:34 PM, "Jonathan Wakely" <jwakely.gcc@xxxxxxxxx> wrote: >On 15 August 2012 13:39, Ron Stubbs wrote: >> Hi, >> >> I get the following configuration error message when configuring GCC 4.8 >> on an x86_64 suystem running Scientific linux 6.2. >> >> checking for the correct version of gmp.h... yes >> checking for the correct version of mpfr.h... yes >> checking for the correct version of mpc.h... yes >> checking for the correct version of the gmp/mpfr/mpc libraries... no >> configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC >> 0.8.0+. >> Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify >> >> Although the version check for the .h files succeeds, the library check >> fails. >> >> The installed version are required libraries: >> gmp-4.3.1-7.el6_2.2.x86_64 >> mpfr-2.4.1-6.el6.x86_64 >> mpc-0.8.2 >> >> I've tried with both ./configure and /configure --with-gmp=/usr/lib64 >> --with-mpfr=/usr/lib64 --with-mpc=/usr/local/lib > >1) Don't use ./configure, as documented at >http://gcc.gnu.org/install/configure.html and >http://gcc.gnu.org/wiki/FAQ#configure and >http://gcc.gnu.org/wiki/InstallingGCC you should build outside the >source directory. > >2) /usr/lib64 is a library path, not the installation prefix. You >would want to use --with-gmp-lib=/usr/lib64 or --with-gmp=/usr but the >compiler will always look in /usr/lib64 anyway so you shouldn't need >to use any --with-xxx options for gmp, mpfr and mpc if they're >installed in /usr > >For more specific information on what fails you will need to look in >the config.log file.