gmp
configure--prefix=/usr/local/gmp-6.0.0--enable-cxx
------------------------------------------------------------------------
mpfr
configure--prefix=/usr/local/mpfr-3.1.2--with-gmp=/usr/local/gmp-6.0.0
------------------------------------------------------------------------
mpc
configure--prefix=/usr/local/mpc-1.0--with-gmp=/usr/local/gmp-6.0.0
--with-mpfr=/usr/local/mpfr-3.1.2
------------------------------------------------------------------------
exportLD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/mpc-1.0/lib:/usr/local/gmp-6.0.0/lib:/usr/local/mpfr-3.1.2/lib
------------------------------------------------------------------------
gcc
./configure--prefix=/usr/local/gcc-4.8.2--enable-threads=posix--disable-checking
--disable-multilib--enable-languages=c,c++--with-gmp=/usr/local/gmp-6.0.0
--with-mpfr=/usr/local/mpfr-3.1.2--with-mpc=/usr/local/mpc-1.0
------------------------------------------------------------------------