Opened 3 years ago

Closed 3 years ago

#65058 closed defect (invalid)

Port command does not work in bash shell on Monterey

Reported by: fmw42 (Fred Weinhaus) Owned by:
Priority: Normal Milestone:
Component: base Version: 2.7.2
Keywords: monterey Cc:
Port:

Description

I installed MacPorts on OSX Monterey on my new Mac Mini M1 and switched my shell from zsh (default) to bash. But the sudo port -v selfupdate command failed saying the port command was not recognized. How do I get MacPorts to function under bash? The command does work in zsh shell.

Change History (1)

comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed

The MacPorts installer sets up the PATH for you for whatever shell you were using at the time you ran the installer. If you change which shell you use after you run the installer, either run the installer again or set up the PATH for your new shell manually. See https://guide.macports.org/chunked/installing.shell.html.

Note: See TracTickets for help on using tickets.