我尝试运行自制程序以便在may 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.
我该怎么办?或者我该如何删除? 提前致谢 欢呼声
答案 0 :(得分: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下的所有文本和libintl,但将libgettextlib.dylib,libintl.dylib和libintl.h重命名为其他内容(例如使用-pre-homebrew的postfix)可能就足够了。