Wednesday, May 16, 2012

Macport installing sudo: port: command not found

While installing the Macport on your mac, if you happen to find following error:
sudo: port: command not found

Following lines are useful to run before you do sudo port -v selfupdate.
as a result, above error will be gone.


export PATH=$PATH:/opt/local/bin
export MANPATH=$MANPATH:/opt/local/share/man
export INFOPATH=$INFOPATH:/opt/local/share/info


source

3 comments:

  1. i have to do it every new terminal session, is there a trick to make it permanent?

    ReplyDelete
  2. I think you can add these lines in .bash_profile (by default its hidden file on Mac).

    ReplyDelete