解决Homebrew警告而不会产生不利影响

时间:2017-07-25 07:32:16

标签: mysql node.js git homebrew macos-sierra

我在使用Homebrew安装mysql时遇到问题,并且已经运行brew doctor试图找到它的底部。

给出的建议总是解决Homebrew提出的警告/错误,但是我不希望这样做会对我的系统造成不良副作用。

据我了解,节点错误可能是由手动安装Node而不是Homebrew引起的。我不确定git unlinked keg是关于什么的。

解决这些错误最安全的方法是什么?

CRMPiccos-MacBook:~ crmpicco$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!

Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected header files:
  /usr/local/include/node/node_internals.h
  /usr/local/include/node/smalloc.h
  /usr/local/include/node/v8stdint.h

Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
  git

1 个答案:

答案 0 :(得分:0)

  

据我了解,节点错误可能是由手动安装Node而不是Homebrew引起的。

我不知道这些文件来自哪里,但是如果你害怕删除它们,你可以将它们移动到某个地方,然后在需要时将它们移回。

  

我不确定git unlinked keg是关于什么的。

git已安装但未符号链接到/usr/local/bin和朋友等标准位置。因此,依赖于特定git安装的程序无法找到它。如果您没有任何依赖它的公式,您应该运行brew link gitbrew rm git