JuliaPackaging / Homebrew.jl

OSX Binary dependency provider for Julia
Other
27 stars 32 forks source link

OSX: Nettle and ZMQ build fail (wrong path) #169

Open p-i- opened 7 years ago

p-i- commented 7 years ago

@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,

pi@PiBook.local ~ /Users/pi/.julia/v0.5/Homebrew/deps/usr/Library/Taps/staticfloat:
 ⤐  ls
homebrew-juliadeps

pi@PiBook.local ~ /Users/pi/.julia/v0.5/Homebrew/deps/usr/Library/Taps/staticfloat:
 ⤐  cd homebrew-juliadeps/

pi@PiBook.local ~ /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.

staticfloat commented 7 years ago

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 notifications@github.com 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,

pi@PiBook.local ~ /Users/pi/.julia/v0.5/Homebrew/deps/usr/Library/Taps/staticfloat: ⤐ ls homebrew-juliadeps

pi@PiBook.local ~ /Users/pi/.julia/v0.5/Homebrew/deps/usr/Library/Taps/staticfloat: ⤐ cd homebrew-juliadeps/

pi@PiBook.local ~ /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 .

Ken-B commented 7 years ago

I had the same issue, just creating that folder manually fixed it.

rodrigolece commented 7 years ago

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?

ZacCranko commented 7 years ago

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.