How to set user environment settings for MacPorts.
If the MacPorts install was performed as someone other than the end user, we’ll need to update their PATH environment variable.
This is a follow-up step if MacPorts did not return a path of /opt/local/bin/port to the query which port in Terminal.
which port
sudo -s
cd /Users/uniqname
nano .bash_profile
vim .bash_profile
export PATH="/opt/local/bin:/opt/local/sbin:$PATH"