![Homebrew 抱怨我的 PATH 中存在非 Homebrew 的“pkg-config”](https://linux22.com/image/1340580/Homebrew%20%E6%8A%B1%E6%80%A8%E6%88%91%E7%9A%84%20PATH%20%E4%B8%AD%E5%AD%98%E5%9C%A8%E9%9D%9E%20Homebrew%20%E7%9A%84%E2%80%9Cpkg-config%E2%80%9D.png)
我刚刚在我的计算机上安装了 Homebrew,但运行之后brew doctor
出现了两个警告。
我似乎没有安装 Xcode 的命令行工具,但现在已经安装了。第二个警告是:
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.
我该如何补救呢?