Lost "port" command

Brandon Allbery allbery.b at gmail.com
Sat May 3 10:31:10 PDT 2014


On Sat, May 3, 2014 at 1:27 PM, Bill Christensen <
billc_lists at greenbuilder.com> wrote:

> I installed a non-MacPorts package on my server the other day - WordPress
> command line interface (wp-cli) which uses the "wp" command.  It's working
> properly.
>
> But I just went to do my regular updates using MacPorts, and I've lost my
> "port" command.  I'm getting "command not found".
>
> How do I (a) re-establish the port command and (b) keep the wp command?
>

Find whatever is setting $PATH in your shell dotfiles and make it
consistent so that it can find both. (Without knowing what/how it's being
set, I can't say a whole lot more about how.)

Likely files are
~/.profile
~/.bash_profile
~/.bashrc
or if you use csh/tcsh
~/.login
~/.cshrc
~/.tcshrc

and note that you may have ended up with a setting in one of those files
overriding a setting in another.

-- 
brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-users/attachments/20140503/2fe71b44/attachment.html>


More information about the macports-users mailing list