switch back to clang after installing gcc through Macports on Mavericks

In Terminal:

nano ~/.bash_profile

find the line that looks like this:

export PATH=/opt/local/bin:/opt/local/sbin:$PATH

comment it out by putting # in front of it.


If you want to avoid uninstalling or changing your PATH. Just run:

sudo port select --set gcc none

…and to re-enable it you run:

sudo port select --set gcc gcc5

You have to remove it from your $PATH.

One off your possibilites is to just uninstall it : sudo port uninstall gcc