运行“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/