User Tools

Site Tools


acelab:gcc

This is an old revision of the document!


Guide to install GCC 4.x.x and 5.x.x
sudo su
cd /data/scratch

Download the sources required from the following FTP servers: GMP: http://ftp.gnu.org/gnu/gmp/ MPFR: http://ftp.gnu.org/gnu/mpfr/ MPC: http://ftp.gnu.org/gnu/mpc/ GCC: http://ftp.gnu.org/gnu/gcc/ 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

/app/dokuwiki/data/attic/acelab/gcc.1443086440.txt.gz · Last modified: 2021/12/09 16:42 (external edit)