From 69c8ed1a1e3971453cf8300c064572b3f0a51324 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Wed, 13 Mar 2013 10:22:09 -0700 Subject: [PATCH] doctor: add check for coreutils in path --- Library/Homebrew/cmd/doctor.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 8016d142e9..06f3d8c6ee 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -982,6 +982,14 @@ def check_for_bad_python_symlink end end +def check_for_non_prefixed_coreutils + gnubin = `brew --prefix coreutils`.chomp + "/libexec/gnubin" + if paths.include? gnubin then <<-EOS.undent + Putting non-prefixed coreutils in your path can cause gmp builds to fail. + EOS + end +end + def check_for_pydistutils_cfg_in_home if File.exist? ENV['HOME']+'/.pydistutils.cfg' then <<-EOS.undent A .pydistutils.cfg file was found in $HOME, which may cause Python