From your question, it appears that you are using another (possibly built-in) install
command rather than the MacPorts command port install
.
According to the documentation, you may need to use sudo
in front of the port install
command, as well, like this:
sudo port install ...
(where ... is the name of what you are going to install via MacPorts)