【问题标题】:brew doctor Error: "No available formula with the name "pkg-config" "brew doctor 错误:“没有名称为“pkg-config”的可用公式“
【发布时间】:2017-04-06 14:00:17
【问题描述】:

我刚刚使用 Linux Bash Shell 在 Windows 上安装了 Homebrew,但是当我运行 brew doctor 时出现此错误:

错误:没有名称为“pkg-config”的可用公式

我能做什么?

【问题讨论】:

标签: homebrew


【解决方案1】:

首先,更新 Homebrew,使其从正确的资源中提取:brew update 再次运行brew doctor

如果发生同样的错误,请尝试执行brew search pkg-config 并查看出现哪些结果。我遇到过包裹路径与平时不同的情况。选择一个搜索结果,然后使用搜索结果中的包路径执行brew installbrew install /homebrew/searchresultpath/pkg-config

希望扩展的正确路径能够解决您的问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-01-12
    • 1970-01-01
    • 2021-05-08
    • 1970-01-01
    • 2017-11-02
    • 2018-09-14
    相关资源
    最近更新 更多