Install Gnu Compilers on Mac OS

Download latest version of XCode

Open Terminal Session

enter the following: xcode-select –install

This will prompt you to install the command line developer tools


click install

Download the latest gnu compilers from here latest archive of the GNU compilers

in terminal cd to your downloads folder containing the downloaded file

run the following command: sudo tar xvf gcc-4.9-bin.tar -C /

edit your .bash_profile and add the following entry

export PATH=/usr/local/bin:$PATH

in the terminal enter: xcode-select –switch <path to>


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s