Homebrew 安装“工作人员组”错误

发布于 2024-12-01 09:36:06 字数 745 浏览 1 评论 0原文

我正在尝试使用 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)

我应该如何安装这?我在网上到处读到人们使用这个安装脚本,它显然工作得非常好。

I'm trying to use the Homebrew install script:

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

It doesn't work:

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

Neither does that last line, which returns this when run with either $USER or my actual username:

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

How am I supposed to install this? Everywhere I read about people using this install script on the web, it apparently works like gangbusters.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

旧人哭 2024-12-08 09:36:06

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

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

现在我可以继续进行自制程序了 安装。

I was experiencing the same problem on Lion 10.7.1
I followed the command listed here: http://obfuscurity.com/2011/07/Fixing-Group-Permissions-after-Migrating-to-OS-X-Lion

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

And I am now able to proceed with the homebrew installation.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文