How to Install gcc 4.7 on Mac OS X

XCode installs gcc 4.2 which has some bugs that prevent me from running skeinforge. This is how I installed gcc 4.7.

First install MacPorts. Then use the port command to install and activate the new gcc.

 sudo port install gcc47
 sudo port select gcc mp-gcc47
 hash gcc

To make the previous gcc active, use

 sudo port select gcc none
 hash gcc
This entry was posted in Computer, Mac, Programming and tagged , , , , . Bookmark the permalink.

Leave a Reply