From 8a5633c4f22fc60f662c820fc9b34ad10ea2f5db Mon Sep 17 00:00:00 2001 From: Max Howell Date: Wed, 7 Sep 2011 12:18:05 +0100 Subject: Check that /usr/bin/cc exists in `brew doctor` Refs #7454.--- Library/Homebrew/cmd/doctor.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Library') diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 4e268f630..4f971791c 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -214,6 +214,13 @@ def check_gcc_versions EOS end end + + unless File.exist? '/usr/bin/cc' + puts <<-EOS.undent + You have no /usr/bin/cc. This will cause numerous build issues. Please + reinstall Xcode. + EOS + end end def __check_subdir_access base -- cgit v1.2.3