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"
You need /opt/local/bin
in the $PATH
.
To add to $PATH
:
export PATH=/opt/local/bin:$PATH