{"action":"created","issue":{"url":"https://api.github.com/repos/Homebrew/homebrew/issues/19580","repository_url":"https://api.github.com/repos/Homebrew/homebrew","labels_url":"https://api.github.com/repos/Homebrew/homebrew/issues/19580/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/issues/19580/comments","events_url":"https://api.github.com/repos/Homebrew/homebrew/issues/19580/events","html_url":"https://github.com/Homebrew/homebrew/issues/19580","id":13907432,"number":19580,"title":"Homebrew goes ahead with installation after warning dev tools aren't installed","user":{"login":"mistydemeo","id":780485,"avatar_url":"https://avatars.githubusercontent.com/u/780485?v=3","gravatar_id":"","url":"https://api.github.com/users/mistydemeo","html_url":"https://github.com/mistydemeo","followers_url":"https://api.github.com/users/mistydemeo/followers","following_url":"https://api.github.com/users/mistydemeo/following{/other_user}","gists_url":"https://api.github.com/users/mistydemeo/gists{/gist_id}","starred_url":"https://api.github.com/users/mistydemeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mistydemeo/subscriptions","organizations_url":"https://api.github.com/users/mistydemeo/orgs","repos_url":"https://api.github.com/users/mistydemeo/repos","events_url":"https://api.github.com/users/mistydemeo/events{/privacy}","received_events_url":"https://api.github.com/users/mistydemeo/received_events","type":"User","site_admin":true},"labels":[{"url":"https://api.github.com/repos/Homebrew/homebrew/labels/usability","name":"usability","color":"DDDDDD"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2013-05-02T19:45:27Z","updated_at":"2016-04-02T15:24:19Z","closed_at":"2016-04-02T15:24:19Z","body":"As reported by a user on IRC:\r\n\r\n```\r\nWarning: No developer tools installed\r\nYou should install the Command Line Tools: http://connect.apple.com\r\n==> Downloading http://git-core.googlecode.com/files/git-1.8.2.2.tar.gz\r\nAlready downloaded: /Library/Caches/Homebrew/git-1.8.2.2.tar.gz\r\n==> make prefix=/usr/local/Cellar/git/1.8.2.2 CC=cc CFLAGS=-Os -w -pipe   -march=native -Qunused-arguments -mmacosx-version-min=10.8 LDFLAGS=-L/usr/local/lib install\r\nFailed to execute: make\r\nError: Homebrew doesn't know what compiler versions ship with your version\r\nof Xcode (dunno). Please `brew update` and if that doesn't help, file\r\nan issue with the output of `brew --config`:\r\n```\r\n\r\nEven though Homebrew warns the user that the dev tools aren't installed, the installer moves ahead with installation anyway, which predictably fails. Looks like this happens because of this: https://github.com/mxcl/homebrew/blob/master/Library/Homebrew/cmd/install.rb#L42-L49\r\n\r\nWe borrow the `brew doctor` check for Xcode, which just returns a string and doesn't let us determine whether a) no dev tools are installed, b) outdated dev tools are installed.\r\n\r\nI'll probably replace this with something like:\r\n\r\n```ruby\r\n  def check_xcode\r\n    require 'cmd/doctor'\r\n    checks = Checks.new\r\n    # if there are no dev tools, don't bother proceeding with the build\r\n    odie checks.send(:check_for_latest_xcode) if !(MacOS::Xcode.installed? or MacOS::CLT.installed?)\r\n    # these two are informative but not fatal\r\n    opoo checks.send(:check_for_latest_xcode) if MacOS::Xcode.version < MacOS::Xcode.latest_version\r\n    out = checks.send(:check_xcode_license_approved)\r\n    opoo out unless out.nil?\r\n  end\r\n```\r\n\r\nStill borrowing the message from the doctor, but performing the tests we really care about ourselves."},"comment":{"url":"https://api.github.com/repos/Homebrew/homebrew/issues/comments/204737189","html_url":"https://github.com/Homebrew/homebrew/issues/19580#issuecomment-204737189","issue_url":"https://api.github.com/repos/Homebrew/homebrew/issues/19580","id":204737189,"user":{"login":"mikemcquaid","id":125011,"avatar_url":"https://avatars.githubusercontent.com/u/125011?v=3","gravatar_id":"","url":"https://api.github.com/users/mikemcquaid","html_url":"https://github.com/mikemcquaid","followers_url":"https://api.github.com/users/mikemcquaid/followers","following_url":"https://api.github.com/users/mikemcquaid/following{/other_user}","gists_url":"https://api.github.com/users/mikemcquaid/gists{/gist_id}","starred_url":"https://api.github.com/users/mikemcquaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikemcquaid/subscriptions","organizations_url":"https://api.github.com/users/mikemcquaid/orgs","repos_url":"https://api.github.com/users/mikemcquaid/repos","events_url":"https://api.github.com/users/mikemcquaid/events{/privacy}","received_events_url":"https://api.github.com/users/mikemcquaid/received_events","type":"User","site_admin":true},"created_at":"2016-04-02T15:24:19Z","updated_at":"2016-04-02T15:24:19Z","body":"Homebrew can now work in some cases without development tools so closing this out."}}