Open neverchanje opened 5 years ago
lscpu | grep "Architecture" | awk '{print $2}'
检查是否是 x86_64
glibc_ver=ldd --version | grep ldd | grep -Eo "[0-9]+.[0-9]+$"
compiling gcc-4.9.4
wget ftp://gcc.gnu.org/pub/gcc/infrastructure/mpc-0.8.1.tar.gz wget https://ftp.gnu.org/gnu/gmp/gmp-4.3.2.tar.gz wget https://ftp.gnu.org/gnu/mpfr/mpfr-2.4.2.tar.gz
tar xfj gmp-4.3.2.tar.gz
cd gmp-4.3.2
./configure --prefix=pwd
/output; make install -j8
cd ..
tar xvf mpfr-2.4.2.tar.gz;
cd mpfr-2.4.2
./configure --prefix=pwd
/output --with-gmp=pwd
/../gmp-4.3.2/output; make install -j8
cd ..
wget ftp://ftp.gnu.org/gnu/mpc/mpc-1.0.3.tar.gz
tar xfz mpc-1.0.3.tar.gz
cd mpc-1.0.3
./configure --prefix=pwd
/output --with-gmp=pwd
/../gmp-4.3.2/output --with-mpfr=pwd
/../mpfr-2.4.2/output; make install -j8
cd ..