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
commit69c8ed1a1e3971453cf8300c064572b3f0a51324 (patch)
tree9c7e922f1e581b3f7c58e373b5c671f5b1eb2cd0 /Library
parent7b7268c065a25a7fcf7d82ee7589402a6603f4e0 (diff)
downloadbrew-69c8ed1a1e3971453cf8300c064572b3f0a51324.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