使用 `brew info package` 时,`Dependencies` 部分中的小节是什么意思?

What is the meaning of subsections in `Dependencies` section when using `brew info package`?

我想知道 brew 中某些包的依赖项是什么。这就是我使用 brew info package 的原因。 Dependencies 部分包含两个子部分 BuildRequired。这些部分是什么意思?

P.S。有没有办法在 brew 中安装包及其所有依赖项?

有两种使用 Homebrew 安装包的方法:

  1. 使用预构建的二进制文件(如果它们适用于您的 macOS 版本)
  2. 从源代码构建

Required 无论软件包如何安装,依赖项始终是必需的。 构建 仅当您从源代码安装包时才需要依赖项。

默认情况下,Homebrew 安装预构建的二进制文件。 (参见 FAQ ¶ Why do you compile everything? and ¶ Why should I install Homebrew in the default location?

Is there a way to install package with all its dependencies in brew?

brew install package 将自动安装依赖项(除了安装包本身)。