先安装m4
先安装:gmp-6.1.0
在按照mpfr-3.1.4
:./configure --prefix=/local_data1/GUEST/med_train/software/gcc-7.2.0/mpfr-3.1.4 --with-gmp-include=/local_data1/GUEST/med_train/software/gcc-7.2.0/gmp-6.1.0/include --with-gmp-lib=/local_data1/GUEST/med_train/software/gcc-7.2.0/gmp-6.1.0/lib
make && make check && make install
再安装:mpc
./configure --prefix=/local_data1/GUEST/med_train/software/gcc-7.2.0/mpc-1.0.3 --with-mpfr=/local_data1/GUEST/med_train/software/gcc-7.2.0/mpfr-3.1.4 --with-gmp=/local_data1/GUEST/med_train/software/gcc-7.2.0/gmp-6.1.0
make && make check && make install
再安装:isl
不能直接在源目录下编译:
./configure --prefix=/local_data1/GUEST/med_train/software/gcc-7.2.0/isl016/ --with-gmp-prefix=/local_data1/GUEST/med_train/software/gcc-7.2.0/gmp-6.1.0
最后安装:gcc
./configure --prefix=/local_data1/GUEST/med_train/software/gcc --with-mpc=/local_data1/GUEST/med_train/software/gcc-7.2.0/mpc-1.0.3 --with-mpfr=/local_data1/GUEST/med_train/software/gcc-7.2.0/mpfr-3.1.4 --with-gmp=/local_data1/GUEST/med_train/software/gcc-7.2.0/gmp-6.1.0 --with-isl=/local_data1/GUEST/med_train/software/gcc-7.2.0/isl016 --disable-multilib
https://gcc.gnu.org/wiki/InstallingGCC