aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMike McQuaid2013-10-29 16:22:03 -0400
committerMike McQuaid2013-10-30 11:28:38 -0700
commitd1602a25486459ecfb5ccd1ca91519e7c7f4eaea (patch)
treee157cb0738452b47f27f5158ef1f1cbf0b43e523 /Library/Homebrew/cmd
parentd91644ef72be9ea5d47ff0c5b27433f0ae4ca6d5 (diff)
downloadhomebrew-d1602a25486459ecfb5ccd1ca91519e7c7f4eaea.tar.bz2
doctor: strengthen osx-gcc-installer warning.
We hate it and we should tell people why. Next step may be blocking it altogether.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/doctor.rb25
1 files changed, 19 insertions, 6 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index 63c326523..d41c539dc 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -261,13 +261,26 @@ def __check_clt_up_to_date
end
def check_for_osx_gcc_installer
- if (MacOS.version < "10.7" || MacOS::Xcode.version < "4.1") && \
- MacOS.clang_version == "2.1" then <<-EOS.undent
- You have osx-gcc-installer installed.
- Homebrew doesn't support osx-gcc-installer, and it is known to cause
- some builds to fail.
- Please install Xcode #{MacOS::Xcode.latest_version}.
+ if (MacOS.version < "10.7" || MacOS::Xcode.version > "4.1") && \
+ MacOS.clang_version == "2.1"
+ message = <<-EOS.undent
+ You seem to have osx-gcc-installer installed.
+ Homebrew doesn't support osx-gcc-installer. It causes many builds to fail and
+ is an unlicensed distribution of really old Xcode files.
EOS
+ if MacOS.version >= :mavericks
+ message += <<-EOS.undent
+ Please run `xcode-select --install` to install the CLT.
+ EOS
+ elsif MacOS.version >= :lion
+ message += <<-EOS.undent
+ Please install the CLT or Xcode #{MacOS::Xcode.latest_version}.
+ EOS
+ else
+ message += <<-EOS.undent
+ Please install Xcode #{MacOS::Xcode.latest_version}.
+ EOS
+ end
end
end