[MacPorts] #21625: .bash_profile $PATH handled incorrectly
MacPorts
noreply at macports.org
Sat Sep 26 14:13:45 PDT 2009
#21625: .bash_profile $PATH handled incorrectly
---------------------------------------+------------------------------------
Reporter: curtis_ovid_poe@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: base | Version: 1.8.0
Keywords: | Port:
---------------------------------------+------------------------------------
Comment(by curtis_ovid_poe@…):
Replying to [comment:3 blb@…]:
> Replying to [ticket:21625 curtis_ovid_poe@…]:
> > There were two problems with this. First, I already had
/opt/local/bin in my path, so now it's there twice.
>
> Where are you currently setting this? The installer should be checking
PATH and only updating your dotfiles when it doesn't see MacPorts' paths.
This was set in my .bash_profile. I had to set in manually because when I
first started using Mac Ports (a couple of years ago), I was still not
getting those ports first in my path. I later installed Snow Leopard, I
had a number of corruption issues and had to reistall Mac Ports.
Regrettably, I was fixing so many issues that I can't tell you the steps
to recreate this.
> > * If I have $HOME/bin first in my path, it's because I want $HOME/bin
first in my path. Please leave it there :)
>
> Note that the initial install will put it first on PATH (when MacPorts'
paths aren't already there) and is doing that quite on purpose.
The implication is that somehow the $PATH got wiped out during my upgrade
and the /opt/local/bin wasn't in my path when Mac Ports was reinstalled.
I don't know how this could have happened, but it sounds like you are
doing the right thing (so long as my $PATH is correct).
--
Ticket URL: <http://trac.macports.org/ticket/21625#comment:4>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list