Homebrew医生:找到gettext

4
我将为您翻译以下内容,涉及到IT技术,希望能够帮到您:

我想在我的Mac上安装一些Unix工具,因此尝试使用Homebrew进行安装,但是开始有些问题。我已经卸载了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.

我该怎么办?或者说我如何删除这个?谢谢提前。

祝好

1个回答

4

我在 /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)可能就足够了。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接