Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
doctor: try to detect osx-gcc-installer
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information
jacknagel committed Feb 8, 2012
1 parent f95800f commit 0d41d6d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Library/Homebrew/cmd/doctor.rb
Expand Up @@ -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
Expand Down Expand Up @@ -861,6 +877,7 @@ def doctor
check_for_leopard_ssl
check_git_version
check_for_enthought_python
check_for_osx_gcc_installer
ensure
$stdout = old_stdout
end
Expand Down

0 comments on commit 0d41d6d

Please sign in to comment.