From 1761ba66bfca0784d49de10bd684cc54d53fded8 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sat, 3 Apr 2010 08:44:41 -0700 Subject: Failures during ./configure should mention config.log. --- bin/brew | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bin') diff --git a/bin/brew b/bin/brew index 95b077251..1c1f2d29a 100755 --- a/bin/brew +++ b/bin/brew @@ -434,6 +434,13 @@ rescue BuildError => e # then replace that string with the following when the github api returns issues = issues_for_formula(formula_name) puts "These existing issues may help you:", *issues unless issues.empty? + if e.was_running_configure? + puts "It looks like an autotools configure failed." + puts "Consider re-running the install with '-vd' to keep 'config.log' around:" + puts " brew install -vd formula_name" + puts "Gist 'config.log' and any error output when reporting an issue." + end + puts puts "Consider running `brew doctor` if a large number of installs are failing." exit 1 rescue RuntimeError, SystemCallError => e -- cgit v1.2.3