select a gcc sompiler

Eric Gallager egall at gwmail.gwu.edu
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
--set`...



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

> On Mon, Oct 21, 2013 at 2:57 PM, chamm <topher.hamm at gmail.com> 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 gmail.com
> ballbery at sinenomine.net
> unix, openafs, kerberos, infrastructure, xmonad
> http://sinenomine.net
>
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> https://lists.macosforge.org/mailman/listinfo/macports-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20131021/6b26b49b/attachment.html>


More information about the macports-users mailing list