# Homebrew had build errors

**URL:** <https://discourse.julialang.org/t/homebrew-had-build-errors/6639>\
**Category:** New to Julia\
**Created:** [October 24, 2017, 12:34am UTC](https://discourse.julialang.org/t/homebrew-had-build-errors/6639 "2017-10-24T00:34:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hrchen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hrchen/32/8893_2.png) [@hrchen](https://discourse.julialang.org/u/hrchen)\
**Post date:** [October 24, 2017, 12:34am UTC](https://discourse.julialang.org/t/homebrew-had-build-errors/6639/1 "2017-10-24T00:34:35Z")

</div>

Building Homebrew returns an error with the message below. I’ve tried Pkg.rm(“Homebrew”), deleting the folder .julia/v0.5/Homebrew, deleting the .julia/.cache/Homebrew and just installing Pkg.add(“Homebrew”), following [Howmebrew update to v"0.5.4" gives error on both 0.5 and 0.6 - #4 by Evizero](https://discourse.julialang.org/t/howmebrew-update-to-v-0-5-4-gives-error-on-both-0-5-and-0-6/2775/4)  
which leads to the same error. I am using OS X 10.12.6

```julia

julia> Pkg.build("Homebrew")
INFO: Building Homebrew
Already up-to-date.
Error: git: /Users/hanrong/.julia/v0.5/Homebrew/deps/usr/Library/Taps/homebrew/homebrew-core/Formula/git.rb:190: syntax error, unexpected $undefined, expecting keyword_end
      \thelper = osxkeychain
       ^
==============================[ERROR: Homebrew]===============================

LoadError: ArgumentError: `brew info` failed for String["git"]!
while loading /Users/hanrong/.julia/v0.5/Homebrew/deps/build.jl, in expression starting on line 2

================================================================================

================================[BUILD ERRORS]================================

WARNING: Homebrew had build errors.

 - packages with build errors remain installed in /Users/hanrong/.julia/v0.5
 - build the package(s) and all dependencies with `Pkg.build("Homebrew")`
 - build a single package by running its `deps/build.jl` script

================================================================================
```

---

<div class="post-metadata">

**Author:** ![anon94023334](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@anon94023334](https://discourse.julialang.org/u/anon94023334)\
**Post date:** [October 24, 2017, 4:23am UTC](https://discourse.julialang.org/t/homebrew-had-build-errors/6639/2 "2017-10-24T04:23:17Z")

</div>

See [https://github.com/JuliaPackaging/Homebrew.jl/issues/207](https://github.com/JuliaPackaging/Homebrew.jl/issues/207).
