This is an old revision of the document!
sudo su cd /data/scratch
Download the sources required:
wget gmp-x.x.x wget mfpr-x.x.x wget mpg-x.x.x wget gcc-x.x.x
Install repo dependencies:
yum install glibc-devel.i686 glibc glibc-devel glibc-static
Compile dependencies:
tar -xf gmp-x.x.x.tar.gz cd gmp-x.x.x ./configure --prefix=/opt/gmp-x.x.x make -j4 make install
cd .. tar -xf mfpr-x.x.x.tar.gz cd mfpr-x.x.x ./configure --prefix=/opt/mfpr-x.x.x --with-gmp=/opt/gmp-x.x.x make -j4 make install
cd .. tar -xf mpc-x.x.x.tar.gz cd mpc-x.x.x ./configure --prefix=/opt/mpc-x.x.x --with-gmp=/opt/gmp-x.x.x --with-mpfr=/opt/mpfr-x.x.x make -j4 make install
Compile GCC:
export LD_LIBRARY_PATH=/opt/gmp-x.x.x:/opt/mfpr-x.x.x:/opt/mpc-x.x.x:$LD_LIBRARY_PATH
cd .. tar -xf gcc-x.x.x.tar.gz cd gcc-x.x.x ./configure --prefix=/opt/gcc-x.x.x --with-gmp=/opt/gmp-x.x.x --with-mpfr=/opt/mpfr-x.x.x --with-mpc=/opt/mpc-x.x.x make -j16 make install