酿酒医生发出警告 [英] Brew doctor gives out warnings

查看:73
本文介绍了酿酒医生发出警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我去做酿酒医生时,我会发出很多警告.因此,我继续进行,清理了现有的安装并从头开始.

when I ran brew doctor I go loads of warnings. So I went ahead, cleaned out the existing installation and did it from scratch.

现在我仍然收到一些警告:

Now I still get some warnings:

    Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:

    /opt/sm/pkg/active/bin/curl-config
    /opt/sm/pkg/active/bin/ncurses5-config
    /opt/sm/pkg/active/bin/ncursesw5-config
    /opt/sm/pkg/active/bin/pkg-config
    /opt/sm/pkg/active/bin/xml2-config
    /opt/sm/pkg/active/bin/xslt-config
Warning: You have a non-Homebrew 'pkg-config' in your PATH:
  /opt/sm/pkg/active/bin/pkg-config

`./configure` may have problems finding brew-installed packages using
this other pkg-config.

但是由于我几天前才开始使用OS X,所以我不确定所提到的配置文件是否相关,或者我是否可以删除它们?已经在论坛上浏览了几个小时,但目前还没有一个明智的选择.非常感谢您提供任何建议!

But since I only started using OS X a few days ago, I am not sure if the mentioned config files are relevant or if I can just delete them? Have already been looking through forums for hours, but still none the wiser at the moment... Any advice is very much appreciated!

推荐答案

尝试从路径中删除/opt/sm/pkg/active/bin/.

这将防止该目录中安装的脚本意外地优先于自制软件安装的脚本.

That will prevent the scripts installed in that directory from accidentally taking precedence over the ones installed by homebrew.

这篇关于酿酒医生发出警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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