Use sudo
.
sudo port <commands>
Eu tentei instalar as bibliotecas de desenvolvimento do servidor PostgreSQL usando o MacPorts e obtive o seguinte:
Warning: MacPorts running without privileges. You may be unable to complete certain actions (e.g. install).
---> Computing dependencies for postgresql-server-devel
---> Dependencies to be installed: postgresql-devel
---> Building postgresql-devel
Error: Target org.macports.build returned: shell command failed
Error: The following dependencies failed to build: postgresql-devel
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
Então, eu acho que isso significa que eu preciso executar MacPorts com privilégios e tentar novamente. Infelizmente não tenho idéia de como dar privilégios ao MacPorts.
Estou executando o OS X 10.6.3