[MacPorts] #70680: sudo @1.9.16 -- sudo: port: command not found
MacPorts
noreply at macports.org
Tue Sep 3 14:04:56 UTC 2024
#70680: sudo @1.9.16 -- sudo: port: command not found
---------------------+--------------------
Reporter: RobK88 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.10.1
Resolution: | Keywords:
Port: port |
---------------------+--------------------
Comment (by RobK88):
I can run `port` with `sudo` but I must supply the full path to `port`
{{{
bash-5.2$ sudo /opt/local/bin/port version
Version: 2.10.1
bash-5.2$ sudo port version
sudo: port: command not found
bash-5.2$ echo $PATH
/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin
bash-5.2$ sudo echo $PATH
/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin
}}}
--
Ticket URL: <https://trac.macports.org/ticket/70680#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list