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.

[code language=”bash”]
sudo port install gcc47
sudo port select gcc mp-gcc47
hash gcc
[/code]

To make the previous gcc active, use

[code language=”bash”]
sudo port select gcc none
hash gcc
[/code]

This entry was posted in Computer, Mac, Programming and tagged , , , , . Bookmark the permalink.

Leave a Reply