Exception: BuildToolsError

Inherits:
RuntimeError
  • Object
show all
Defined in:
brew/Library/Homebrew/exceptions.rb

Overview

Raised by FormulaInstaller#check_dependencies_bottled and FormulaInstaller#install if the formula or its dependencies are not bottled and are being installed on a system without necessary build tools.

Instance Method Summary collapse

Constructor Details

#initialize(formulae) ⇒ BuildToolsError

Returns a new instance of BuildToolsError



446
447
448
449
450
451
452
453
# File 'brew/Library/Homebrew/exceptions.rb', line 446

def initialize(formulae)
  super <<~EOS
    The following #{"formula".pluralize(formulae.count)}
      #{formulae.to_sentence}
    cannot be installed as #{"binary package".pluralize(formulae.count)} and must be built from source.
    #{DevelopmentTools.installation_instructions}
  EOS
end