【问题标题】:Resolving Homebrew warnings without causing adverse effects在不造成不利影响的情况下解决 Homebrew 警告
【发布时间】:2017-07-25 07:32:16
【问题描述】:

我在使用 Homebrew 安装 mysql 时遇到问题,我已经运行 brew doctor 来尝试了解它。

给出的建议始终是解决 Homebrew 提出的警告/错误,但是我不想这样做对我的系统造成不利的副作用。

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

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

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

【问题讨论】:

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


    【解决方案1】:

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

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

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

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

    【讨论】:

    • 这会以任何方式影响我的默认 git 安装吗?或者这样做安全吗? grunt呢?
    • @crmpicco 它不会影响您的默认 git 安装,因为它没有链接。 (编辑:还要注意所有这些都可以回滚:brew link git -> brew unlink git; brew rm git -> brew install git)。
    猜你喜欢
    • 2016-10-09
    • 2011-05-23
    • 2022-01-05
    • 1970-01-01
    • 2018-12-24
    • 2019-07-16
    • 1970-01-01
    • 2023-03-06
    • 2012-03-22
    相关资源
    最近更新 更多