[MacPorts] #70680: sudo @1.9.16 -- sudo: port: command not found
MacPorts
noreply at macports.org
Tue Sep 3 13:36:44 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 |
---------------------+--------------------
Description changed by RobK88:
Old description:
> I just installed `sudo @1.9.16` on my Mac running El Capitan.
>
> I am using the default sudoers file. No changes.
>
> But I cannot run the `sudo port`. I get command not found.
>
> {{{
>
> MacBook-Pro:~ grinch$ which sudo
> /opt/local/bin/sudo
>
> MacBook-Pro:~ grinch$ which port
> /opt/local/bin/port
>
> MacBook-Pro:~ grinch$ echo $PATH
> /opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin
>
> MacBook-Pro:~ grinch$ sudo echo $PATH
> /opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin
>
> MacBook-Pro:~ grinch$ sudo port outdated
> sudo: port: command not found
>
> MacBook-Pro:~ grinch$ dscacheutil -q group -a name admin
> name: admin
> password: *
> gid: 80
> users: root grinch rob
>
> MacBook-Pro:~ grinch$
> }}}
New description:
I just installed `sudo @1.9.16` on my Mac running El Capitan.
I am using the default sudoers file. No changes.
But I cannot run the `sudo port` command. I get command not found.
{{{
MacBook-Pro:~ grinch$ which sudo
/opt/local/bin/sudo
MacBook-Pro:~ grinch$ which port
/opt/local/bin/port
MacBook-Pro:~ grinch$ echo $PATH
/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin
MacBook-Pro:~ grinch$ sudo echo $PATH
/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin
MacBook-Pro:~ grinch$ sudo port outdated
sudo: port: command not found
MacBook-Pro:~ grinch$ dscacheutil -q group -a name admin
name: admin
password: *
gid: 80
users: root grinch rob
MacBook-Pro:~ grinch$
}}}
--
--
Ticket URL: <https://trac.macports.org/ticket/70680#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list