select a gcc sompiler

Eric Gallager egall at
Mon Oct 21 12:14:56 PDT 2013

Seeing as this seems to come up often, perhaps we could at least have
MacPorts print a note about it or something after running `port select

On Mon, Oct 21, 2013 at 3:07 PM, Brandon Allbery <allbery.b at>wrote:

> 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
> _______________________________________________
> macports-users mailing list
> macports-users at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the macports-users mailing list