# Problems building Cairo

**URL:** <https://discourse.julialang.org/t/problems-building-cairo/6844>\
**Category:** General Usage\
**Created:** [November 2, 2017, 2:40pm UTC](https://discourse.julialang.org/t/problems-building-cairo/6844 "2017-11-02T14:40:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![renec](https://avatars.discourse-cdn.com/v4/letter/r/8baadc/32.png) [@renec](https://discourse.julialang.org/u/renec)\
**Post date:** [November 2, 2017, 2:40pm UTC](https://discourse.julialang.org/t/problems-building-cairo/6844/1 "2017-11-02T14:40:15Z")

</div>

Hello,  
two days ago, after Pkg.update(), I cannot use Cairo any longer. All attempts to build the package results in the following error:  
“LoadError: could not spawn `unxz -c /Users/Reinhard/.julia/v0.5/Cairo/deps/downloads/glib-2.34.3.tar.xz`: no such file or directory (ENOENT)  
while loading /Users/Reinhard/.julia/v0.5/Cairo/deps/build.jl, in expression starting on line 162”  
Neither re-installing Julia, nor removing and re-adding Cairo does work. The solution(s) suggested for the similar problem in Windows are not applicable on my Mac system. Is there anybody who has encountered - and solved - this problem on a Mac?  
(Mac: MacBook Pro, OS Version: 10.11.6 , Julia version: 0.5.2  
P.S. There were no problems whatsoever prior to the afore mentioned Pkg.updata()

---

<div class="post-metadata">

**Author:** ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)\
**Post date:** [November 2, 2017, 6:31pm UTC](https://discourse.julialang.org/t/problems-building-cairo/6844/2 "2017-11-02T18:31:36Z")

</div>

This may be related to the [HomeBrew issues](https://github.com/JuliaPackaging/Homebrew.jl/issues/209) that have been seen recently. You could try pinning HomeBrew to an earlier version, or see if an upgrade to Julia v0.6 fixes it.

---

<div class="post-metadata">

**Author:** ![renec](https://avatars.discourse-cdn.com/v4/letter/r/8baadc/32.png) [@renec](https://discourse.julialang.org/u/renec)\
**Post date:** [November 2, 2017, 9:56pm UTC](https://discourse.julialang.org/t/problems-building-cairo/6844/3 "2017-11-02T21:56:38Z")

</div>

Thank you for your reply.  
In v0.6, indeed, everything seems to work as expected - except for a now unsupported package (Grid) 😅  
renec

---

<div class="post-metadata">

**Author:** ![jwu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jwu/32/3775_2.png) [@jwu](https://discourse.julialang.org/u/jwu)\
**Post date:** [November 5, 2017, 1:28am UTC](https://discourse.julialang.org/t/problems-building-cairo/6844/4 "2017-11-05T01:28:31Z")

</div>

Not sure whether your problem was solved or not.  
I encountered similar errors previously, manually installing the command line tool will solve the issue. Here, you might just try manually install unxz.

---

<div class="post-metadata">

**Author:** ![renec](https://avatars.discourse-cdn.com/v4/letter/r/8baadc/32.png) [@renec](https://discourse.julialang.org/u/renec)\
**Post date:** [November 5, 2017, 11:17am UTC](https://discourse.julialang.org/t/problems-building-cairo/6844/5 "2017-11-05T11:17:22Z")

</div>

Thank you for your reaction. I kind of solved the problem by migrating to version 0.6. As soon as I’m finished with the migration, I will try your suggestion on the old installation.  
Again thanks for your advice.
