[MacPorts] #59460: catalina $PATH not set when installer run from standard account
MacPorts
noreply at macports.org
Wed Oct 23 17:35:46 UTC 2019
#59460: catalina $PATH not set when installer run from standard account
-----------------------------+--------------------
Reporter: mjbolzan | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.6.2
Keywords: Catalina, $PATH | Port:
-----------------------------+--------------------
i routinely run a standard account. the MacPorts installer lets me
authenticate with admin credentials to run the install. the installer ran
fine. problem is that the $PATH variable was set in the standard account.
when i went into terminal, logged in as an administrator, and tried to run
"sudo port -v selfupdate", "port" was not found. i eventually ran the
commands with "/opt/local/bin/port" and that worked. i eventually fixed
the issue by rerunning the MacPorts installer while logged in as the
administrator account.
catalina, account shells set to "zsh". it looks like the "zsh" $PATH is
set in the home folder in the file ".zprofile".
I don't know if you can fix the installer so the path change affects all
accounts. Failing that, the instructions on the web page need to be made
clearer. In particular,
1) there is a need to modify the $PATH variable even if you run the Mac
installers if you will run "port" in accounts other than the acccount you
installed in.
2) cover what file needs changing when the shell is "zsh".
--
Ticket URL: <https://trac.macports.org/ticket/59460>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list