Fedora Core 20 gcc 4.8.2 Installation instructions

If you are trying to build and install gcc 4.8.2 from source code on Fedora Core 20 box, you will find lot of challenges to fix the dependencies. To fix that issue and to reduce the time here I have listed out the steps to be followed to get the successful build.

Install build pre-requisites:

Before installing gcc 4.8.2, install the build pre-requisites
1. yum groupinstall "Development tools"
2. yum install glibc-devel.i686 glibc-i686
3. yum install gcc-c++
4. yum install m4
5. yum install wget
6. Yum install zlib zlib-devel

Download, build and install gcc pre-requisites

  1. wget -c https://gmplib.org/download/gmp/gmp-5.1.3.tar.bz2
    $ tar -jxf gmp-5.1.3.tar.bz2
    $ cd gmp-5.1.3/
    $ ./configure
    $ make
    $ make install

  2. wget -c http://www.mpfr.org/mpfr-current/mpfr-3.1.2.tar.bz2
    $ tar -jxf mpfr-3.1.2.tar.bz2
    $ cd mpfr-3.1.2
    $ ./configure –with-gmp=~/gcc482/gmp-5.1.3
    $ make
    $ make install

  3. wget -c http://www.multiprecision.org/mpc/download/mpc-1.0.1.tar.gz
    $ tar -zxf mpc-1.0.1.tar.gz
    $ cd mpc-1.0.1/
    $ ./configure –with-gmp=~/gcc482/gmp-5.1.3 –with-mpfr=~/gcc482/mpfr-3.1.2
    $ make
    $ make install

Build gcc 4.8.2

  1. wget -c http://mirrors.ispros.com.bd/gnu/gcc/gcc-4.8.2/gcc-4.8.2.tar.bz2
    $ tar -jxf gcc-4.8.2.tar.bz2
    $ cd gcc-4.8.2
    $ ./configure –prefix=/opt/gcc482 –with-gmp=~/gcc482/gmp-5.1.3 –with-mpfr=~/gcc482/mpfr-3.1.2 –with-mpc=~/gcc482/mpc-1.0.1
    $ make
    $ su root
    $ make install

Mapping gcc on the system

$ cd /usr/bin
$ ln -s /opt/gcc482/bin/gcc gcc482
$ ln -s /opt/gcc482/bin/g++ g++482

 

This article is a contribute from Vijay Prakash from the ADN team, Vijay is located in Bangalore, India and is one of our Maya expert.

 


Comments

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading