1.资源准备
首先需要准备的资源有
gcc-4.8.5.tar.gz,
然后可能用到的有
gmp-4.3.2.tar.bz2,mpfr-3.1.4.tar.bz,mpc-1.0.3.tar.gz,
中途用到的依赖库可能会有
autogen-5.16.2.tar.gz
2.安装顺序
首先
gmp-4.3.2.tar.bz2,
mpfr-3.1.4.tar.bz,mpc-1.0.3.tar.gz,
这三个必须要安装,否则,他会提示错误。如下:
安装gmp:
./configure &&make &&make install
安装mpfr./configure --with-gmp=/usr/local/gmp-4.3.2 &&make&&make check&&make install
安装mac./configure --with-gmp=/usr/local/gmp-4.3.2 --with-mpfr=/usr/local/mpfr-3.1.4&&make&&make check&&make install
安装gcc
[root@ximena gcc-4.8.5]# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/usr/local/mpc-1.0.3/lib:/usr/local/gmp-4.3.2/lib:/usr/local/mpfr-3.1.4/lib