Monday 16 December 2013

Installation of GCC 4.8.2 compilers on CentOS 6 x86_64

Before Installing GCC 4.8.2  get packages and pre-requisties :

GCC 4.8.2 http://mirrors.ispros.com.bd/gnu/gcc/gcc-4.8.2/gcc-4.8.2.tar.bz2

Pre-requesties :

MPC  http://www.multiprecision.org/mpc/download/mpc-1.0.1.tar.gz
MPFR http://www.mpfr.org/mpfr-current/mpfr-3.1.2.tar.bz2
GMP https://gmplib.org/download/gmp/gmp-5.1.3.tar.bz2
ISL ftp://ftp.irisa.fr/pub/mirrors/gcc.gnu.org/gcc/infrastructure/isl-0.11.1.tar.bz2
CLOOG ftp://ftp.irisa.fr/pub/mirrors/gcc.gnu.org/gcc/infrastructure/cloog-0.18.0.tar.gz


Install Development Tools :

yum groupinstall "Development tools"


Install 32 bit library support :

yum install glibc-devel.i686 glibc-i686


First extract gcc-4.8.2.tar.bz2 :

tar -jxvf gcc-4.8.2.tar.bz2
cd gcc-4.8.2

Now got that extracted gcc folder extract pre-requesties and rename extracted folders to their names as simillary:

tar -zxvf ../mpc-1.0.1.tar.gz
tar -jxvf ../mpfr-3.1.2.tar.bz2
..
mv mpc-1.0.1  mpc
mv mpfr-3.1.2  mpfr
...

Now configure GCC :

./configure --prefix=/opt/gcc-4.8.2/
make
make -k check
make install

Share This!



No comments:

Post a Comment

Here We Write The Problems we face at different situations and Solutions to those problems.