aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAdam Vandenberg2010-04-03 08:44:41 -0700
committerAdam Vandenberg2010-06-10 12:57:51 -0700
commit1761ba66bfca0784d49de10bd684cc54d53fded8 (patch)
treecd8ce5cb705d7e53a504262cc1914bb532d98be5 /bin
parent914a068dc8cc9f84188a4a8b194336c632744058 (diff)
downloadbrew-1761ba66bfca0784d49de10bd684cc54d53fded8.tar.bz2
Failures during ./configure should mention config.log.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew7
1 files changed, 7 insertions, 0 deletions
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