diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 8fb0bcb606..a672d57f78 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -15,6 +15,8 @@
# You should have received a copy of the GNU General Public License
# along with Homebrew. If not, see .
+require 'utils'
+
class BuildError