Brew 医生说:“警告:/usr/local/include 不可写." [英] Brew doctor says: "Warning: /usr/local/include isn't writable."

查看:44
本文介绍了Brew 医生说:“警告:/usr/local/include 不可写."的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Brew 医生说:

警告:/usr/local/include 不可写.如果您sudo make install"不是由 Homebrew 管理的软件,就会发生这种情况.

Warning: /usr/local/include isn't writable. This can happen if you "sudo make install" software that isn't managed by Homebrew.

如果 brew 尝试将头文件写入此目录,则安装将在链接步骤中失败.

If a brew tries to write a header file to this directory, the install will fail during the link step.

你应该chown/usr/local/include

You should probably chown /usr/local/include

我尝试了不同的命令来解决这个问题,但我仍然卡在这里.

I've tried different commands to solve this but I'm still stuck here.

我在 10.8.2 上运行自制软件

I'm running homebrew on 10.8.2

推荐答案

拥有它和其中的一切.

Mac OS High Sierra 或更新版本:(在下面的评论中与 Kirk 联系)

Mac OS High Sierra or newer: (ty to Kirk in the comments below)

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

以前版本的 macos:

Previous versions of macos:

$ sudo chown -R $USER:admin /usr/local/include

然后再做一个

$ brew doctor

这篇关于Brew 医生说:“警告:/usr/local/include 不可写."的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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