澄清安装软件时从 mac os(10.11.6) 上的自制程序获得的消息

Clarification on message got from homebrew on mac os(10.11.6) while installing software

当我在 mac os(10.11.6) 上使用 homebrew 安装软件时,我得到如下信息:

This formula is keg-only, which means it was not symlinked into /usr/local.

OS X provides the BSD gettext library and some software gets confused if both are in the library path.

Generally there are no consequences of this for you. If you build your own software and it requires this formula, you'll need to add to your build variables:

LDFLAGS:  -L/usr/local/opt/gettext/lib
CPPFLAGS: -I/usr/local/opt/gettext/include

这是什么意思?

If/when 您需要从源代码构建软件,您需要 set the LDFLAGS and CPPFLAG options 适当以使编译器正常工作。

Homebrew 在这里向您提供的警告是为了通知您 OS X 已经提供了您通过 Homebrew 安装的 gettext 工具。由于您的 macOS 系统上现在有两个版本的 gettext,如果您需要从源代码构建软件,编译器可能会在构建时混淆使用哪个版本。

除非您需要从源代码构建软件,否则无需担心。