sudo: port: command not found

If you install mac ports under Mac, then run sudo port install "app_here" 

and you recieve this error (the title), i have the solution. One word. $PATH.

Open your .bashrc file (if you dont have it, create it), and add these lines

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

(the first, for the port command and the second for the manpages
of port command. Yea, i know its obvious... :P)


Anonymous said…
Might seem obvious, and it certainly is, but that is the reason for which I haven’t been able to use the port command for a very long time.
carpincho said…
For me wasn't obvious. :)
Thanks for passing by!

Popular posts from this blog

Como configurar el control de directv para que funcione con el Tv

Show all values in Numpy array

Converting unicode date to datetime object.