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

问题描述

酿酒师说:

如果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

推荐答案

拥有它及其中所有内容的所有权.

Take ownership of it and everything in it.

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不可写."的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 10:29