gcc44 installs correctly but default gcc is still used
Dominik Reichardt
domiman at gmail.com
Wed May 23 14:41:33 PDT 2012
The other stuff is what PATH is normally set to.
When you do that export in .profile
> export PATH=/opt/local/bin:/opt/local/sbin:$PATH
you are using the old PATH variable with the $PATH part. That's where it comes from ;)
But if you wonder where the system sets this default path... then I can't help you ;)
Dom
Am 23.05.2012 um 23:19 schrieb Josie Reinhardt <josieziegler at gmail.com>:
> export PATH=/opt/local/bin:/opt/local/sbin:$PATH
>
>
> On Wed, May 23, 2012 at 5:04 PM, Frank Schima
> <macsforever2000 at macports.org> wrote:
>>
>> 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>
>>
>>
>
> Frank and Jeremy, thanks for so cheerfully dealing with newby me. I
> think it's working now:
>
> $ which gcc
> /opt/local/bin/gcc
>
> But for whatever reason the PATH I'm getting back is _not_ what I set
> in ~/.profile:
>
> Here's the entirety of .profile (now that I've cleaned it up):
> export PATH=/opt/local/bin:/opt/local/sbin:$PATH
>
> But when I open a new terminal and echo path I get
> $ echo $PATH
> /opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
>
> Still at least now /opt/local/bin are in front... but where did the
> other stuff come from???
>
> Josie
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
More information about the macports-users
mailing list