Homebrew.jl
Homebrew.jl copied to clipboard
OSX: Nettle and ZMQ build fail (wrong path)
@staticfloat I've just updated my old Anaconda installation and installed the current Julia (0.5)
From the Julia REPL I run:
Pkg.add("IJulia")
...which fails. The error boils down to this:
julia> Pkg.build("Nettle", "ZMQ")
INFO: Building Homebrew
Already up-to-date.
INFO: Building Nettle
=====================[ ERROR: Nettle ]=====================
LoadError: SystemError: unable to read directory
/Users/pi/.julia/v0.5/Homebrew/deps/usr/Library/Taps/staticfloat/homebrew-juliatranslated:
No such file or directory
while loading /Users/pi/.julia/v0.5/Nettle/deps/build.jl, in expression starting on line 39
===========================================================
INFO: Building ZMQ
======================[ ERROR: ZMQ ]=======================
LoadError: SystemError: unable to read directory
/Users/pi/.julia/v0.5/Homebrew/deps/usr/Library/Taps/staticfloat/homebrew-juliatranslated:
No such file or directory
while loading /Users/pi/.julia/v0.5/ZMQ/deps/build.jl, in expression starting on line 38
===========================================================
=====================[ BUILD ERRORS ]======================
WARNING: Nettle and ZMQ had build errors.
- packages with build errors remain installed in /Users/pi/.julia/v0.5
- build the package(s) and all dependencies with `Pkg.build("Nettle", "ZMQ")`
- build a single package by running its `deps/build.jl` script
===========================================================
If I inspect my paths,
[email protected] ~ /Users/pi/.julia/v0.5/Homebrew/deps/usr/Library/Taps/staticfloat:
⤐ ls
homebrew-juliadeps
[email protected] ~ /Users/pi/.julia/v0.5/Homebrew/deps/usr/Library/Taps/staticfloat:
⤐ cd homebrew-juliadeps/
[email protected] ~ /Users/pi/.julia/v0.5/Homebrew/deps/usr/Library/Taps/staticfloat/homebrew-juliadeps:
⤐ ls
LICENSE fontconfig.rb openlibm.rb
README.md glpk452.rb openspecfun.rb
bonmin.rb glpk455.rb optimizationservices.rb
cbc.rb ipopt.rb rmath-julia.rb
couenne.rb libgfortran.rb scs.rb
ecos.rb mirror_bottles.sh zeromq32.rb
.../Taps/staticfloat/homebrew-juliatranslated
<-- it expects this
.../Taps/staticfloat/homebrew-juliadeps
<-- I have this
What's going wrong? Installation was seamless on my iMac.
Is it possible that this computer had a very old version of Homebrew.jl
installed? Somehow your Homebrew.jl installation has gotten into an
inconsistent state. You should be able to fix this by running using Homebrew; Homebrew.install_brew()
. You should see a message about it
tapping staticfloat/juliatranslated
.
-E
On Thu, Dec 8, 2016, 10:24 Pi [email protected] wrote:
@staticfloat https://github.com/staticfloat I've just updated my old Anaconda installation and installed the current Julia (0.5)
From the Julia REPL I run:
Pkg.add("IJulia")
...which fails. The error boils down to this:
julia> Pkg.build("Nettle", "ZMQ") INFO: Building Homebrew Already up-to-date. INFO: Building Nettle =====================[ ERROR: Nettle ]=====================
LoadError: SystemError: unable to read directory /Users/pi/.julia/v0.5/Homebrew/deps/usr/Library/Taps/staticfloat/homebrew-juliatranslated: No such file or directory while loading /Users/pi/.julia/v0.5/Nettle/deps/build.jl, in expression starting on line 39
=========================================================== INFO: Building ZMQ ======================[ ERROR: ZMQ ]=======================
LoadError: SystemError: unable to read directory /Users/pi/.julia/v0.5/Homebrew/deps/usr/Library/Taps/staticfloat/homebrew-juliatranslated: No such file or directory while loading /Users/pi/.julia/v0.5/ZMQ/deps/build.jl, in expression starting on line 38
===========================================================
=====================[ BUILD ERRORS ]======================
WARNING: Nettle and ZMQ had build errors.
- packages with build errors remain installed in /Users/pi/.julia/v0.5
- build the package(s) and all dependencies with
Pkg.build("Nettle", "ZMQ")
- build a single package by running its
deps/build.jl
script===========================================================
If I inspect my paths,
[email protected] ~ /Users/pi/.julia/v0.5/Homebrew/deps/usr/Library/Taps/staticfloat: ⤐ ls homebrew-juliadeps
[email protected] ~ /Users/pi/.julia/v0.5/Homebrew/deps/usr/Library/Taps/staticfloat: ⤐ cd homebrew-juliadeps/
[email protected] ~ /Users/pi/.julia/v0.5/Homebrew/deps/usr/Library/Taps/staticfloat/homebrew-juliadeps: ⤐ ls LICENSE fontconfig.rb openlibm.rb README.md glpk452.rb openspecfun.rb bonmin.rb glpk455.rb optimizationservices.rb cbc.rb ipopt.rb rmath-julia.rb couenne.rb libgfortran.rb scs.rb ecos.rb mirror_bottles.sh zeromq32.rb
.../Taps/staticfloat/homebrew-juliatranslated <-- it expects this .../Taps/staticfloat/homebrew-juliadeps <-- I have this
What's going wrong? Installation was seamless on my iMac.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/JuliaPackaging/Homebrew.jl/issues/169, or mute the thread https://github.com/notifications/unsubscribe-auth/AAH_aB57kmLbPGU2AP5rWjUUkyagsS4Hks5rGEtHgaJpZM4LIIUd .
I had the same issue, just creating that folder manually fixed it.
Same here, manually added the folder and worked perfectly. However, @staticfloat , my installation of Homebrew is brand new (no pun intended). I bought a new computer less than a month ago and just installed Hombrew, so maybe the issue is somewhere else?
Just experienced this same issue in 2017 while trying to build Cairo.jl with all the latest everything on a fresh Julia binary downloaded from https://julialang.org/. @staticfloat's solution fixed my problem.