Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

port command not found

I am trying to install XFig and found this post. But when I tried to sudo port selfupdate I get the error sudo: port: command not found.

I am using zsh and tried to modify the path according to this in both .zshrc and .bash_profile but still no luck.

The current PATH in .zshrc file looks like this

export PATH="/Users/chintanshah/anaconda/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"

like image 702
chintan s Avatar asked Mar 27 '16 09:03

chintan s


Video Answer


1 Answers

You need /opt/local/bin in the $PATH.

To add to $PATH:

export PATH=/opt/local/bin:$PATH

like image 187
trojanfoe Avatar answered Oct 12 '22 23:10

trojanfoe