set default gcc among different versions

Gmail yangzf01 at
Sun Nov 17 23:00:01 PST 2013

Hi all

I have installed 2 versions of gcc. One is from Mac BUILT-IN. The other one is from macports. So how can I make the gcc installed by macports as the default gcc while I compile c program? BTW, in the /opt/local/bin directory, I can find gcc-mp-4.8 and gfortran-mp-4.8, instead of gcc and gfortran. I am not sure if this is correct.

Thank you
Zhifeng (Bruce) Yang
Department of Earth and Atmospheric Sciences
University of Nebraska-Lincoln
Homepage :

More information about the macports-users mailing list