I got this problem when i first install macports in my macbook. I'm using OS X10.6.3 (Snow leopard) After the installation, I tried to run this command:
sudo port -v selfupdate
but I got this output:
sudo: port: command not found
My macbook doesn't recognize any of my sudo command. I did some research on the internet and found a solution that works for me.
Add these 3 lines to your .bash_profile. If you don't have that file, you should have .profile file. To open the file, you should run this line on your terminal.
open .profile
Then add these lines to the file and save it.
export PATH=$PATH:/opt/local/bin
export MANPATH=$MANPATH:/opt/local/share/man
export INFOPATH=$INFOPATH:/opt/local/share/info
After that r-esource the file and you're done.
source .profile
Happy trying!!!
0 comments:
Post a Comment