diff options
| author | Jack Nagel | 2012-02-08 11:49:47 -0600 | 
|---|---|---|
| committer | Jack Nagel | 2012-02-08 11:51:51 -0600 | 
| commit | 0d41d6d65dcba47be5a9c0af873999ab96b035f2 (patch) | |
| tree | 105aed10e5e0b76c5dc977de6c344f25dd3df4f2 | |
| parent | f95800f55b374bb5ad4789cd9d2998bfd47516f0 (diff) | |
| download | homebrew-0d41d6d65dcba47be5a9c0af873999ab96b035f2.tar.bz2 | |
doctor: try to detect osx-gcc-installer
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 17 | 
1 files changed, 17 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 41a6dfb89..6bfc792b7 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -815,6 +815,22 @@ def check_for_enthought_python    EOS  end +def check_for_osx_gcc_installer +  # Use the existence of Carbon headers to make a guess as to whether +  # the osx-gcc-installer was used in lieu of Xcode. +  unless File.exist? "/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h" +    puts <<-EOS.undent +      It appears that you are using the osx-gcc-installer. + +      This is unsupported, and software that require headers and other +      resources that are normally provided by Xcode will fail to compile. + +      We recommend that you install Xcode. + +    EOS +  end +end +  module Homebrew extend self    def doctor      old_stdout = $stdout @@ -861,6 +877,7 @@ module Homebrew extend self        check_for_leopard_ssl        check_git_version        check_for_enthought_python +      check_for_osx_gcc_installer      ensure        $stdout = old_stdout      end  | 
