# Frequently failure with adding packages

**URL:** <https://discourse.julialang.org/t/frequently-failure-with-adding-packages/3214>\
**Category:** General Usage\
**Tags:** question, package\
**Created:** [April 14, 2017, 1:26pm UTC](https://discourse.julialang.org/t/frequently-failure-with-adding-packages/3214 "2017-04-14T13:26:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sclereid](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sclereid/32/947_2.png) [@sclereid](https://discourse.julialang.org/u/sclereid)\
**Post date:** [April 14, 2017, 1:26pm UTC](https://discourse.julialang.org/t/frequently-failure-with-adding-packages/3214/1 "2017-04-14T13:26:50Z")

</div>

For example, when I want to add the IJulia package on my Mac OS julia 0.5 version, it says:

```julia
julia> using IJulia
INFO: Precompiling module IJulia.
ERROR: LoadError: ZMQ not properly installed. Please run Pkg.build("ZMQ")
 in error(::String) at ./error.jl:21
...
 in _start() at /Applications/Julia.app/Contents/Resources/julia/lib/julia/sys.dylib:?
while loading /Users/apple/.julia/v0.5/ZMQ/src/ZMQ.jl, in expression starting on line 26
ERROR: LoadError: Failed to precompile ZMQ to /Users/apple/.julia/lib/v0.5/ZMQ.ji.
 in compilecache(::String) at ./loading.jl:593
 ...
 in _start() at /Applications/Julia.app/Contents/Resources/julia/lib/julia/sys.dylib:?
while loading /Users/apple/.julia/v0.5/IJulia/src/IJulia.jl, in expression starting on line 38
ERROR: Failed to precompile IJulia to /Users/apple/.julia/lib/v0.5/IJulia.ji.
 in compilecache(::String) at ./loading.jl:593
 in require(::Symbol) at ./loading.jl:422
 in require(::Symbol) at /Applications/Julia.app/Contents/Resources/julia/lib/julia/sys.dylib:?

```

when I type `Pkg.build("ZMQ")`, it says:

```julia
julia> Pkg.build("ZMQ")
INFO: Building Homebrew
Already up-to-date.
INFO: Building ZMQ
=================================[ERROR: ZMQ]=================================

LoadError: SystemError: unable to read directory /Users/apple/.julia/v0.5/Homebrew/deps/usr/Library/Taps/staticfloat/homebrew-juliatranslated: No such file or directory
while loading /Users/apple/.julia/v0.5/ZMQ/deps/build.jl, in expression starting on line 35

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

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

WARNING: ZMQ had build errors.

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

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

```

Building Cairo and other packages are quite similar. This is really a bad experience, and I don’t know what to do besides post it somewhere. Is there anyone who can tell me that why this happens? I don’t think it is the problem of my Mac OS computer, for things are similar on another windows.

---

<div class="post-metadata">

**Author:** ![rdeits](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rdeits/32/286_2.png) [@rdeits](https://discourse.julialang.org/u/rdeits)\
**Post date:** [April 14, 2017, 2:03pm UTC](https://discourse.julialang.org/t/frequently-failure-with-adding-packages/3214/2 "2017-04-14T14:03:47Z")

</div>

It looks like you’re encountering [https://github.com/JuliaPackaging/Homebrew.jl/issues/169](https://github.com/JuliaPackaging/Homebrew.jl/issues/169)

Do any of the suggestions from there help?

---

<div class="post-metadata">

**Author:** ![sclereid](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sclereid/32/947_2.png) [@sclereid](https://discourse.julialang.org/u/sclereid)\
**Post date:** [April 16, 2017, 5:32am UTC](https://discourse.julialang.org/t/frequently-failure-with-adding-packages/3214/3 "2017-04-16T05:32:52Z")

</div>

It did help. Thanks for that.  
However, other packages which I added before didn’t seem to work. I am trying to build them one by one.

---

<div class="post-metadata">

**Author:** ![Alessio\_Bellisomi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alessio_bellisomi/32/12525_2.png) [@Alessio\_Bellisomi](https://discourse.julialang.org/u/Alessio_Bellisomi)\
**Post date:** [July 26, 2018, 2:36pm UTC](https://discourse.julialang.org/t/frequently-failure-with-adding-packages/3214/4 "2018-07-26T14:36:22Z")

</div>

Running Julia 6.4 in Windows 10 - I fixed this running the Julia console as administrator
