4

我尝试让自制软件运行,以便在可能的 mac 上安装一些 unix 工具,但无法启动。我已经删除了 fink 和 macports 并安装了自制软件。

(我正在运行 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.

我该怎么办?或者我怎样才能删除它?在此先感谢欢呼

4

1 回答 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 的后缀)。

于 2012-08-27T03:33:59.610 回答