我正在尝试使用解束缚命令安装brew。
这是brew install unbound的输出
Warning: unbound 1.6.7 is already installed, it's just not linked.
You can use `brew link unbound` to link this version.正如您所看到的,我被要求使用brew link unbound链接到未绑定的1.6.7。
但是我未能链接到它,因为我得到了以下错误:
Linking /usr/local/Cellar/unbound/1.6.7...
Error: Could not symlink sbin/unbound
/usr/local/sbin is not writable.我还有另一个堆栈溢出这里。
答案sudo chown -R $(whoami) /usr/local会创建以下错误:
chown: /usr/local: Operation not permitted我使用的是macOS高级塞拉利昂版10.13.2。
我该如何解决这个问题?
发布于 2018-01-15 10:14:02
以下命令解决了我的问题。
sudo mkdir /usr/local/sbin
sudo chown -R $(whoami) /usr/local
brew link unboundhttps://stackoverflow.com/questions/48259652
复制相似问题