美文网首页
安装Homebrew命令运行失败

安装Homebrew命令运行失败

作者: Hope_Y | 来源:发表于2022-05-17 10:27 被阅读0次

    首先我执行的命令是

    /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

    然后就崩了,提示写入文件没有权限,于是我就查资料,尝试过开机重启设置csrutil disable然并卵,目前还是报这个错,有没有大佬遇到过,谢谢。

    运行代码 ==> /usr/bin/sudo /bin/mkdir -p /usr/local/Homebrew
    此步骤成功
    运行代码 ==> /usr/bin/sudo /bin/chmod -R a+rwx /usr/local/Homebrew
    chmod: Unable to change file mode on /usr/local/Homebrew: Operation not permitted
    此命令运行失败: /usr/bin/sudo /bin/chmod -R a+rwx /usr/local/Homebrew
    运行代码 ==> /usr/bin/sudo /usr/sbin/chown levante /usr/local/Homebrew
    chown: /usr/local/Homebrew: Operation not permitted
    此命令运行失败: /usr/bin/sudo /usr/sbin/chown levante /usr/local/Homebrew
    运行代码 ==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/Homebrew
    chgrp: you are not a member of group admin
    此命令运行失败: /usr/bin/sudo /usr/bin/chgrp admin /usr/local/Homebrew
    rm: /Users/levante/Library/Caches/Homebrew: Permission denied
    rm: /Users/levante/Library/Logs/Homebrew: Permission denied
    git version 2.15.0```

    相关文章

      网友评论

          本文标题:安装Homebrew命令运行失败

          本文链接:https://www.haomeiwen.com/subject/noogurtx.html