select a gcc sompiler

Brandon Allbery allbery.b at
Mon Oct 21 12:07:53 PDT 2013

On Mon, Oct 21, 2013 at 2:57 PM, chamm <topher.hamm at> wrote:

> I think that I am turning on the compiler here:
> sudo port select --set gcc mp-gcc45
> but when I enter gcc -v I see that the old mac version is still default.

Did you `hash -r` first, or open a new terminal? Shells (bash, ksh, tcsh,
zsh) remember where they saw programs; neither MacPorts nor any other
package manager can do anything about it, you must start a new shell or use
`hash -r` (or in some shells `rehash`) to make it forget the old location.

brandon s allbery kf8nh                               sine nomine associates
allbery.b at                                  ballbery at
unix, openafs, kerberos, infrastructure, xmonad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the macports-users mailing list