酿酒医生-“警告:在/usr/local/include中找到未酿酒的头文件"? [英] Brew doctor - "warning: unbrewed header files were found in /usr/local/include"?

查看:251
本文介绍了酿酒医生-“警告:在/usr/local/include中找到未酿酒的头文件"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行brew doctor时,会引发以下错误

When I run brew doctor, the following error is thrown

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/curl/curl.h
    /usr/local/include/curl/curlbuild.h
    /usr/local/include/curl/curlrules.h
    /usr/local/include/curl/curlver.h
    /usr/local/include/curl/easy.h
    /usr/local/include/curl/mprintf.h
    /usr/local/include/curl/multi.h
    /usr/local/include/curl/stdcheaders.h
    /usr/local/include/curl/typecheck-gcc.h
    /usr/local/include/node/ares.h
    /usr/local/include/node/ares_version.h
    /usr/local/include/node/nameser.h
    /usr/local/include/node/node.h
    /usr/local/include/node/node_buffer.h
    /usr/local/include/node/node_internals.h
    /usr/local/include/node/node_object_wrap.h
    /usr/local/include/node/node_version.h
    /usr/local/include/node/openssl/opensslconf.h
    /usr/local/include/node/uv-private/ngx-queue.h
    /usr/local/include/node/uv-private/stdint-msvc2008.h
    /usr/local/include/node/uv-private/tree.h
    /usr/local/include/node/uv-private/uv-bsd.h
    /usr/local/include/node/uv-private/uv-darwin.h
    /usr/local/include/node/uv-private/uv-linux.h
    /usr/local/include/node/uv-private/uv-sunos.h
    /usr/local/include/node/uv-private/uv-unix.h
    /usr/local/include/node/uv-private/uv-win.h
    /usr/local/include/node/uv.h
    /usr/local/include/node/v8-debug.h
    /usr/local/include/node/v8-preparser.h
    /usr/local/include/node/v8-profiler.h
    /usr/local/include/node/v8-testing.h
    /usr/local/include/node/v8.h
    /usr/local/include/node/v8stdint.h
    /usr/local/include/node/zconf.h
    /usr/local/include/node/zlib.h

删除这些文件是否安全?解决此警告的最佳方法是什么?

Would it be safe to delete these files? What is the optimal way to resolve this warning?‏‏‏‏‏‏

推荐答案

似乎您没有使用自制软件就安装了curl和nodejs.

It looks like you installed curl and nodejs without using homebrew.

您有两个选择:

  1. 除了永远记住这一点外,什么也不要做,以免您不认为他们来自家酿,并想知道为什么家酿在抱怨.
  2. 删除它们并安装nodejs并从自制软件中卷曲.

1是简单的方法,直到不是.

我建议使用#2,因为将来可能会从homebrew安装一些依赖curl和/或node的东西,而homebrew会尝试安装那些依赖项.从源构建时,可能会使用错误的头,并且会链接不匹配的库.调试不好玩.

1 is the easy way, until it isn't.

I recommend #2 because it is likely, in the future you will install something from homebrew which depends on curl and/or node and homebrew will attempt to install those dependencies. When building from source, wrong headers may get used and mismatch libraries being linked. This is not fun to debug.

如果由于某种原因存在那些非自制的头文件,并且您正在与它们一起编译软件,则可能需要时可以将它们放回原处.如果您不与它们一起构建软件,则不需要它们.继续删除它们.

If those non homebrew header files are there for a reason and you are compiling software with them, then you are probably able to put them back if you need them. If you aren't building software with them, then you don't need them. Go ahead and delete them for now.

这篇关于酿酒医生-“警告:在/usr/local/include中找到未酿酒的头文件"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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