自制安装“人员组”错误

时间:2011-08-24 20:37:21

标签: macos homebrew

我正在尝试使用Homebrew安装脚本:

/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"

不起作用:

This script requires the user <my_username> to be in the staff group. If this
sucks for you then you can install Homebrew in your home directory or however
you please; please refer to the website. If you still want to use this script
the following command should work:

    dscl /Local/Default -append /Groups/staff GroupMembership $USER

最后一行也没有,当使用$USER或我的实际用户名运行时会返回此行:

<main> attribute status: eDSPermissionError
<dscl_cmd> DS Error: -14120 (eDSPermissionError)

我该如何安装?无论我到处读到有关在网络上使用此安装脚本的人,它显然都像流氓一样。

1 个答案:

答案 0 :(得分:2)

我在Lion 10.7.1上遇到了同样的问题 我按照此处列出的命令:http://obfuscurity.com/2011/07/Fixing-Group-Permissions-after-Migrating-to-OS-X-Lion

sudo dscl . append /Groups/staff GroupMembership `whoami`

我现在可以继续安装自制软件了。