Opened 5 years ago

Closed 5 years ago

#59263 closed defect (fixed)

PATH not set by installer with zsh (such as on Catalina)

Reported by: knightjp Owned by:
Priority: Normal Milestone: MacPorts 2.6.2
Component: base Version: 2.6.1
Keywords: catalina Cc: jmroot (Joshua Root)
Port:

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I installed Macports on a fresh install of Catalina. Upon using the command:

sudo port install <package>

I get the following error

sudo: port: command not found. 

Is there something I’m missing?

I used the very same routine I used on all my Macports installs .

Attachments (1)

D5E9B62A-75CD-4126-B0B3-F65AC3FAFCF1.jpeg (46.4 KB) - added by knightjp 5 years ago.

Download all attachments as: .zip

Change History (6)

Changed 5 years ago by knightjp

comment:1 Changed 5 years ago by jmroot (Joshua Root)

If you installed from the .pkg and are using zsh as your login shell (which is the new default on Catalina), you won't get the changes to PATH that the installer tries to make. See the Guide and PR #152. You need to open a new shell after modifying your shell config files in order for them to be loaded.

comment:2 Changed 5 years ago by jmroot (Joshua Root)

Component: portsbase
Keywords: catalina added
Summary: Cannot install packages on CatalinaPATH not set by installer with zsh (such as on Catalina)

comment:3 Changed 5 years ago by jmroot (Joshua Root)

Cc: jmroot added
Priority: Not setNormal

comment:4 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

comment:5 Changed 5 years ago by jmroot (Joshua Root)

Milestone: MacPorts 2.6.2
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.