gcc44 installs correctly but default gcc is still used

Frank Schima macsforever2000 at macports.org
Wed May 23 14:04:51 PDT 2012


On May 23, 2012, at 2:57 PM, Josie Reinhardt wrote:

> I changed ~/.profile to:
> 
> PATH="$PATH:/opt/local/bin/:/opt/local/sbin/"
> export PATH
> 
> but something keeps adding /usr/bin, etc back in before /opt/local/bin/
> 
> $ echo $PATH
> /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin/:/opt/local/sbin/
> 
> I've tried to find another .profile .bash_profile or .bashrc file that
> could be overriding but I can't find it?

Indeed it is exactly what you set. The suggested path to use according to the guide [1] is as follows:

export PATH=/opt/local/bin:/opt/local/sbin:$PATH


Cheers!
Frank

[1] <https://trac.macports.org/wiki/InstallingMacPorts>




More information about the macports-users mailing list