【问题标题】:homebrew doctor: gettext found自制医生:找到gettext
【发布时间】:2012-08-08 18:02:31
【问题描述】:

我尝试让 homebrew 运行,以便在可能的 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.

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

【问题讨论】:

    标签: gettext homebrew


    【解决方案1】:

    在 /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 的后缀)。

    【讨论】:

      猜你喜欢
      • 2014-11-19
      • 2021-01-28
      • 1970-01-01
      • 1970-01-01
      • 2020-10-11
      • 2020-03-11
      • 2023-03-29
      • 2021-07-27
      • 2021-08-19
      相关资源
      最近更新 更多