我如何授予 MacPorts 权限?

我如何授予 MacPorts 权限?

我尝试使用 MacPorts 安装 PostgreSQL 服务器开发库,并得到以下结果:

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>

所以我想这意味着我需要运行 MacPorts权限并重试。不幸的是,我不知道如何授予 MacPorts 权限。

我正在运行 OS X 10.6.3

答案1

使用sudo

sudo port <commands>

相关内容