无法在Mac OS X 10.13 High Sierra中将/usr/local设为自制软件 [英] can't chown /usr/local for homebrew in Mac OS X 10.13 High Sierra

查看:102
本文介绍了无法在Mac OS X 10.13 High Sierra中将/usr/local设为自制软件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Homebrew需要/usr/local中的权限,并且由于没有人使用我的笔记本电脑,所以我总是很简单

Homebrew needs permissions in /usr/local and since no one else uses my laptop I have always simply done

sudo chown -R $(whoami) $(brew --prefix)

但是在高塞拉山脉,这给了

but in High Sierra, this gives

chown: /usr/local: Operation not permitted

解决方法是什么?

推荐答案

问题不断发生……在深入研究之后,我发现只有卸载Homebrew然后重新安装它才能解决此问题.

The problem kept occurring... after digging deeper I found that only uninstalling Homebrew and then re-installing it solved this issue.

卸载Homebrew:

Uninstall Homebrew:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"

然后重新安装它:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

这篇关于无法在Mac OS X 10.13 High Sierra中将/usr/local设为自制软件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆