aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2013-03-13 10:22:09 -0700
committerAdam Vandenberg2013-03-13 10:22:09 -0700
commitfa54679a1bfe11b41f519490ff30561396f49625 (patch)
treeec1dcb9f83c4b1d9737031bc1b80e8109d095c31 /Library
parenta75b095fe5d274842411b3767be7fdf6d05c5f8a (diff)
downloadhomebrew-fa54679a1bfe11b41f519490ff30561396f49625.tar.bz2
doctor: add check for coreutils in path
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/doctor.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index 8016d142e..06f3d8c6e 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