installer doesn't modify root path

Brandon Allbery allbery.b at gmail.com
Tue Feb 2 07:28:45 PST 2016


On Tue, Feb 2, 2016 at 10:22 AM, Harald Hanche-Olsen <hanche at math.ntnu.no>
wrote:

> Okay, now I am curious. How does the macports installation manipulate the
> path? As far as I know, the above method is standard, even though it may
> not be what macports does. (If I installed that file there, I must have
> done it because it didn’t work otherwise.)


The problem with paths.d is that it adds path entries *after* the standard
ones, whereas users tend to expect that e.g. /opt/local/bin/python
"overrides" Apple's /usr/bin/python. So MacPorts edits your .bash_profile
or .profile to prepend /opt/local/bin to $PATH.

-- 
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: <https://lists.macosforge.org/pipermail/macports-users/attachments/20160202/df2f611e/attachment.html>


More information about the macports-users mailing list