select a gcc sompiler

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


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20131021/c513dd90/attachment.html>


More information about the macports-users mailing list