# Howmebrew update to v"0.5.4" gives error on both 0.5 and 0.6

**URL:** https://discourse.julialang.org/t/howmebrew-update-to-v-0-5-4-gives-error-on-both-0-5-and-0-6/2775
**Category:** General Usage
**Tags:** package
**Created:** [March 20, 2017, 2:52pm UTC](https://discourse.julialang.org/t/howmebrew-update-to-v-0-5-4-gives-error-on-both-0-5-and-0-6/2775 "2017-03-20T14:52:08Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![goedman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/goedman/32/217_2.png) [@goedman](https://discourse.julialang.org/u/goedman)
#### Post date: [March 20, 2017, 2:52pm UTC](https://discourse.julialang.org/t/howmebrew-update-to-v-0-5-4-gives-error-on-both-0-5-and-0-6/2775/1 "2017-03-20T14:52:08Z")

</div>

Hi,

Since this morning I’m getting below error. Both on Julia 0.5 and 0.6 (nightly).  
In both cases after a Homebrew update:

INFO: Upgrading Homebrew: v0.5.1 =\> v0.5.4

Any suggestion what I should try? I’m on OS X 10.12.

Thanks,  
Rob

julia\> Pkg.update()  
INFO: Updating METADATA…  
INFO: Updating cache of DataFrames…  
INFO: Updating cache of DataFrames…  
INFO: Updating CSoM master…  
INFO: Updating NMfE master…  
INFO: Updating ClassicalLaminateTheory master…  
INFO: Computing changes…  
INFO: Upgrading Homebrew: v0.5.1 =\> v0.5.4  
INFO: Building Homebrew  
Already up-to-date.  
=============================================[ERROR: Homebrew]==============================================

LoadError: could not spawn `/Users/rob/.julia/v0.6/Homebrew/deps/usr/bin/git tag 9.9.9 b38c52f930ad5736518dff54f135674347a4a222`: no such file or directory (ENOENT)  
while loading /Users/rob/.julia/v0.6/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/rob/.julia/v0.6
- 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: ![jheinen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jheinen/32/2787_2.png) [@jheinen](https://discourse.julialang.org/u/jheinen)
#### Post date: [March 20, 2017, 4:32pm UTC](https://discourse.julialang.org/t/howmebrew-update-to-v-0-5-4-gives-error-on-both-0-5-and-0-6/2775/2 "2017-03-20T16:32:15Z")

</div>

I have the same problem on different machines - did not find a solution yet …

---

<div class="post-metadata">

### Author: ![ksmcreynolds](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ksmcreynolds/32/860_2.png) [@ksmcreynolds](https://discourse.julialang.org/u/ksmcreynolds)
#### Post date: [March 20, 2017, 4:38pm UTC](https://discourse.julialang.org/t/howmebrew-update-to-v-0-5-4-gives-error-on-both-0-5-and-0-6/2775/3 "2017-03-20T16:38:59Z")

</div>

I also had this problem on OS X 10.11 with Julia 0.5. The problem is that Homebrew is looking for git but can not find it. Looking through the `~/.julia/v0.5/Homebrew/deps/usr/bin/` directory I found that the git package was not installed in Homebrew (although I do have it installed on my system). After installing git with Homebrew using the following code

```julia
using Homebrew; Homebrew.add("git")

```

I was able to use `Homebrew.update()` to successfully finish the update, but only after restarting Julia. You may also need to rebuild the Homebrew Julia package using `Pkg.build("Homebrew")` after this. Let me know if this works you.

For further reference, you can see the documentation for the Homebrew pakage on the GitHub page [https://github.com/JuliaPackaging/Homebrew.jl](https://github.com/JuliaPackaging/Homebrew.jl).

---

<div class="post-metadata">

### Author: ![Evizero](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/evizero/32/10118_2.png) [@Evizero](https://discourse.julialang.org/u/Evizero)
#### Post date: [March 20, 2017, 4:41pm UTC](https://discourse.julialang.org/t/howmebrew-update-to-v-0-5-4-gives-error-on-both-0-5-and-0-6/2775/4 "2017-03-20T16:41:43Z")

</div>

from [ImageMagick problem · Issue #178 · JuliaPackaging/Homebrew.jl · GitHub](https://github.com/JuliaPackaging/Homebrew.jl/issues/178#issuecomment-287804213)

> I regularly end up in a broken Homebrew.jl state after Pkg.update (every month or so). For example just now it spilled out some issue about a missing git tag or something.
> 
> What usually helps is Pkg.rm(“Homebrew”), deleting the folder .julia/v0.5/Homebrew, deleting the .julia/.cache/Homebrew and just installing Pkg.add(“Homebrew”) from scratch. This also likely means that you will have to Pkg.build a few things that you have which depend on Homebrew, like I think ImageMagick and Requests for example.
> 
> Did it right now and it worked like a charm
> 
> Anyway, surely not the cleanest method but it does the job and let’s me get back to work quickl

---

<div class="post-metadata">

### Author: ![goedman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/goedman/32/217_2.png) [@goedman](https://discourse.julialang.org/u/goedman)
#### Post date: [March 20, 2017, 4:45pm UTC](https://discourse.julialang.org/t/howmebrew-update-to-v-0-5-4-gives-error-on-both-0-5-and-0-6/2775/5 "2017-03-20T16:45:24Z")

</div>

Thank you. That solved it. I had noticed it was installed in:

/Users/rob/.julia/v0.6/Homebrew/deps/usr/Cellar/git/2.12.0

Regards,  
Rob
