Skip to content

Install gcc-4.9.1 in OSX  #11

Description

@Buttonwood

'''
mkdir tmp

gmp

wget https://gmplib.org/download/gmp/gmp-6.0.0a.tar.bz2
tar -xjf gmp-6.0.0a.tar.bz2
cd gmp-6.0.0
mkdir build && cd build
../configure --prefix=/usr/bin/gcc-4.9.1 --enable-cxx
make -j 8
sudo make install
cd ../../

mpfr

wget http://www.mpfr.org/mpfr-current/mpfr-3.1.2.tar.gz
tar -xvzf mpfr-3.1.2.tar.gz && cd mpfr-3.1.2
mkdir build && cd build
../configure --prefix=/usr/bin/gcc-4.9.1 --with-gmp=/usr/bin/gcc-4.9.1
make -j 8
sudo make install
cd ../../

mpc

wget ftp://ftp.gnu.org/gnu/mpc/mpc-1.0.2.tar.gz
tar -xvzf mpc-1.0.2.tar.gz && cd mpc-1.0.2
mkdir build && cd build
../configure --prefix=/usr/bin/gcc-4.9.1 --with-gmp=/usr/bin/gcc-4.9.1 --with-mpfr=/usr/bin/gcc-4.9.1
make -j 8
sudo make install
cd ../../

isl

wget ftp://gcc.gnu.org/pub/gcc/infrastructure/isl-0.12.2.tar.bz2
tar -xjf isl-0.12.2.tar.bz2 && cd isl-0.12.2
mkdir build && cd build
../configure --prefix=/usr/bin/gcc-4.9.1 --with-gmp-prefix=/usr/bin/gcc-4.9.1
make -j 4
sudo make install
cd ../../

cloog

wget ftp://gcc.gnu.org/pub/gcc/infrastructure/cloog-0.18.1.tar.gz
tar -xvzf cloog-0.18.1.tar.gz && cd cloog-0.18.1
mkdir build && cd build
../configure --prefix=/usr/bin/gcc-4.9.1 --with-gmp-prefix=/usr/bin/gcc-4.9.1 --with-isl-prefix=/usr/bin/gcc-4.9.1
make -j 8
sudo make install
cd ../../

gcc

wget http://gcc.skazkaforyou.com/releases/gcc-4.9.1/gcc-4.9.1.tar.gz
tar -xvzf gcc-4.9.1.tar.gz && cd gcc-4.9.1

./contrib/download_prerequisites

sudo ./configure --program-suffix=-4.9.1

mkdir build && cd build
../configure --prefix=/usr/bin/gcc-4.9.1 --enable-checking=release --with-gmp=/usr/bin/gcc-4.9.1 --with-mpfr=/usr/bin/gcc-4.9.1 --with-mpc=/usr/bin/gcc-4.9.1 --with-isl=/usr/bin/gcc-4.9.1 --with-cloog=/usr/bin/gcc-4.9.1 --program-suffix=-4.9.1 --enable-languages=c,c++,fortran
make -j 16
sudo make install
'''

https://solarianprogrammer.com/2013/06/11/compiling-gcc-mac-os-x/

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions