macos - "config"脚本存在于系统或 Homebrew 目录之外

标签 macos configuration path homebrew

运行“brew doctor”并出现一些错误。我按照此链接中的建议设法解决了路径问题:How to modify PATH for Homebrew? .

但是,完全不知道如何处理以下错误:

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

菜鸟。运行 OSX。感谢明智的绝地武士的任何帮助...

最佳答案

如果您看到此消息,则意味着您已经安装了未使用 Homebrew 程序的软件包。 如果这些软件包仅安装在 Homebrew 程序之外,那么它们的配置脚本不应干扰 Homebrew 程序,您不必担心。 如果您在 homebrew 和其他包管理器中或手动安装了例如 curl,则可能会出现问题。

如果您需要这些软件,您应该删除它们并在 Homebrew 程序中重新安装它们,否则您可以将它们保留在 /opt 中或卸载它们。

关于macos - "config"脚本存在于系统或 Homebrew 目录之外,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15054605/

相关文章:

hadoop - 亚马逊电子病历 : Set unique number of mappers and reducers per EMR instance

emacs - 如何检测 emacs 是否处于终端模式?

java - 基于 log4j.properties 中的 MDCSiftingAppender,Appender.appender 为 null (log4j 1)

c# - 目录存在(@"\\SERVERIP\aFolder\bFolder");总是返回 false

macOS 上的 C 程序无法打开其输入文件

mysql - 编译 Perl 的 DBD::mysql 时如何修复 "Symbol not found: _is_prefix"?

ruby-on-rails - 工头立即终止

javascript - KUTE.js svg 路径不变形

python - 关于 Mac 代码签名、公证、磁盘镜像和 Python

javascript - 如何从 Electron 的主进程中获得根访问权限并使用磁盘使用量(du)?