gettext - Homebrew doctor : gettext found

标签 gettext homebrew

我尝试运行 Homebrew 程序,以便在 5 月份的 mac 上安装一些 unix 工具,但开始时遇到问题。我已经删除了 fink 和 macports 并安装了 Homebrew 软件。

(我正在运行 Snow Leopard 10.6.8 并安装了 XCode 3.2.6。)

检查我的系统是否已准备好运行时,“brew doctor”命令报告了几个错误: 第一个是:

Warning: gettext was detected in your PREFIX.
The gettext provided by Homebrew is "keg-only", meaning it does not
get linked into your PREFIX by default.

If you `brew link gettext` then a large number of brews that don't
otherwise have a `depends_on 'gettext'` will pick up gettext anyway
during the `./configure` step.

If you have a non-Homebrew provided gettext, other problems will happen
especially if it wasn't compiled with the proper architectures.

我该怎么办?或者我怎样才能删除这个? 提前致谢 干杯

最佳答案

在/usr/local/Library/Homebrew/cmd/doctor.rb 中我发现:

def check_for_gettext
  if %w[lib/libgettextlib.dylib
        lib/libintl.dylib
        include/libintl.h ].any? { |f| File.exist? "#{HOMEBREW_PREFIX}/#{f}" }

虽然我个人从/usr/local 下删除了所有 get text 和 libintl,但将 libgettextlib.dylib、libintl.dylib 和 libintl.h 重命名为其他名称(例如带有 -pre-homebrew 的 postfix)可能就足够了。

关于gettext - Homebrew doctor : gettext found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11870441/

相关文章:

android - 如果 edittext 有图像如何从 edittext 中获取所有图像?

python - 是否可以从 Sphinx 文档生成单个 .pot 文件?

c++ - 如何在运行时给出 "hello world"?

java - 在 Mac OSX Sierra 上安装 Ortus Commandbox,运行 box 会导致错误和异常

mysql - gem install mysql2 不起作用

php - 如何在 php 中隐藏 gettext 信息

python - 如何创建国际化的 Google App Engine 应用程序

mysql - macOS升级到Catalina后运行nginx和mysql时dyld : Library not loaded:/usr/local/opt/openssl/lib/libssl. 1.0.0.dylib

macos - 如何在 M1 Macbook 上的 Rosetta 2 下运行 Homebrew 安装程序

python - 在 macOS High Sierra 上使用 Python 3 安装 OpenCV 的问题