Issues installing a range of packages

I’m having an awful time getting CodecZlib, ZMQ, and MbedTLS to install. All give me errors that look roughly like this:

(v1.1) pkg> build MbedTLS
  Building MbedTLS → `~/.julia/packages/MbedTLS/X4xar/deps/build.log`
┌ Error: Error building `MbedTLS`: 
│ ┌ Warning: platform_key() is deprecated, use platform_key_abi() from now on
│ │   caller = ip:0x0
│ └ @ Core :-1
│ [ Info: Downloading https://github.com/JuliaWeb/MbedTLSBuilder/releases/download/v0.16.0/MbedTLS.v2.13.1.x86_64-apple-darwin14.tar.gz to /Users/Nick/.julia/packages/MbedTLS/X4xar/deps/usr/downloads/MbedTLS.v2.13.1.x86_64-apple-darwin14.tar.gz...
│ ERROR: LoadError: Could not download https://github.com/JuliaWeb/MbedTLSBuilder/releases/download/v0.16.0/MbedTLS.v2.13.1.x86_64-apple-darwin14.tar.gz to /Users/Nick/.julia/packages/MbedTLS/X4xar/deps/usr/downloads/MbedTLS.v2.13.1.x86_64-apple-darwin14.tar.gz:
│ ErrorException("")
│ Stacktrace:
│  [1] error(::String) at ./error.jl:33
│  [2] #download#89(::Bool, ::Function, ::String, ::String) at /Users/Nick/.julia/packages/BinaryProvider/4F5Hq/src/PlatformEngines.jl:498
│  [3] #download at ./none:0 [inlined]
│  [4] #download_verify#90(::Bool, ::Bool, ::Bool, ::Function, ::String, ::String, ::String) at /Users/Nick/.julia/packages/BinaryProvider/4F5Hq/src/PlatformEngines.jl:567
│  [5] #download_verify at ./none:0 [inlined]
│  [6] #install#129(::Prefix, ::String, ::Bool, ::Bool, ::Bool, ::Function, ::String, ::String) at /Users/Nick/.julia/packages/BinaryProvider/4F5Hq/src/Prefix.jl:314
│  [7] (::getfield(BinaryProvider, Symbol("#kw##install")))(::NamedTuple{(:prefix, :force, :verbose),Tuple{Prefix,Bool,Bool}}, ::typeof(install), ::String, ::String) at ./none:0
│  [8] top-level scope at /Users/Nick/.julia/packages/MbedTLS/X4xar/deps/build.jl:48
│  [9] include at ./boot.jl:326 [inlined]
│  [10] include_relative(::Module, ::String) at ./loading.jl:1038
│  [11] include(::Module, ::String) at ./sysimg.jl:29
│  [12] include(::String) at ./client.jl:403
│  [13] top-level scope at none:0
│ in expression starting at /Users/Nick/.julia/packages/MbedTLS/X4xar/deps/build.jl:44
│ [19:49:27] dyld: Library not loaded: @rpath/libssl.1.0.0.dylib
│ [19:49:27]   Referenced from: /Users/Nick/anaconda/lib/libssh2.1.dylib
│ [19:49:27]   Reason: image not found
└ @ Pkg.Operations /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.1/Pkg/src/Operations.jl:1075

I’ve managed to get them running by downloading the package it can’t get myself from in firefox, moving to the relevant folder, then building, but not at all clear why this is an issue!

MacOS 10.14.3
Julia 1.1.0

Even tried nuking my .julia repo, updating curl in anaconda, doing a brew install curl, and using both Julia 1.1.0 and Julia 1.0.3.

1 Like

Are you working in a corporate environment? My client uses zscaler to block downloads, which they scan and if deemed safe would allow you to download.

However, Juila can’t seem to deal with that, but a browser can. So your way of downloading it into the correct directory seems the way to go.

1 Like

No, just a macbook pro on a home fiber network. :confused:

I also just tried turning off the Apple firewall to see if that would make a difference but it doesn’t.

Does mac have antivirus?

bitdefender. But even after turning off firewall again and turning off bitdefender:

(v1.1) pkg> build CodecZlib
  Building CodecZlib → `~/.julia/packages/CodecZlib/9jDi1/deps/build.log`
┌ Error: Error building `CodecZlib`: 
│ [ Info: Downloading https://github.com/bicycle1885/ZlibBuilder/releases/download/v1.0.4/Zlib.v1.2.11.x86_64-apple-darwin14.tar.gz to /Users/Nick/.julia/packages/CodecZlib/9jDi1/deps/usr/downloads/Zlib.v1.2.11.x86_64-apple-darwin14.tar.gz...
│ ERROR: LoadError: Could not download https://github.com/bicycle1885/ZlibBuilder/releases/download/v1.0.4/Zlib.v1.2.11.x86_64-apple-darwin14.tar.gz to /Users/Nick/.julia/packages/CodecZlib/9jDi1/deps/usr/downloads/Zlib.v1.2.11.x86_64-apple-darwin14.tar.gz:
│ ErrorException("")
│ Stacktrace:
│  [1] error(::String) at ./error.jl:33
│  [2] #download#89(::Bool, ::Function, ::String, ::String) at /Users/Nick/.julia/packages/BinaryProvider/4F5Hq/src/PlatformEngines.jl:498
│  [3] #download at ./none:0 [inlined]
│  [4] #download_verify#90(::Bool, ::Bool, ::Bool, ::Function, ::String, ::String, ::String) at /Users/Nick/.julia/packages/BinaryProvider/4F5Hq/src/PlatformEngines.jl:567
│  [5] #download_verify at ./none:0 [inlined]
│  [6] #install#129(::Prefix, ::String, ::Bool, ::Bool, ::Bool, ::Function, ::String, ::String) at /Users/Nick/.julia/packages/BinaryProvider/4F5Hq/src/Prefix.jl:314
│  [7] (::getfield(BinaryProvider, Symbol("#kw##install")))(::NamedTuple{(:prefix, :force, :verbose),Tuple{Prefix,Bool,Bool}}, ::typeof(install), ::String, ::String) at ./none:0
│  [8] top-level scope at /Users/Nick/.julia/packages/CodecZlib/9jDi1/deps/build.jl:89
│  [9] include at ./boot.jl:326 [inlined]
│  [10] include_relative(::Module, ::String) at ./loading.jl:1038
│  [11] include(::Module, ::String) at ./sysimg.jl:29
│  [12] include(::String) at ./client.jl:403
│  [13] top-level scope at none:0
│ in expression starting at /Users/Nick/.julia/packages/CodecZlib/9jDi1/deps/build.jl:78
│ [19:13:48] dyld: Library not loaded: @rpath/libssl.1.0.0.dylib
│ [19:13:48]   Referenced from: /Users/Nick/anaconda/lib/libssh2.1.dylib
│ [19:13:48]   Reason: image not found
└ @ Pkg.Operations /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.1/Pkg/src/Operations.jl:1075

Can you download the file https://github.com/bicycle1885/ZlibBuilder/releases/download/v1.0.4/Zlib.v1.2.11.x86_64-apple-darwin14.tar.gz
using a web browser or wget on the command line?

I can from a browser.

Great (should have been obvious?) suggestion to try from command line.

It appears I don’t have wget:

➜  Desktop wget https://github.com/bicycle1885/ZlibBuilder/releases/download/v1.0.4/Zlib.v1.2.11.x86_64-apple-darwin14.tar.gz
zsh: command not found: wget

And trying curl, I get this:

➜  Desktop curl https://github.com/bicycle1885/ZlibBuilder/releases/download/v1.0.4/Zlib.v1.2.11.x86_64-apple-darwin14.tar.gz
dyld: Library not loaded: @rpath/libssl.1.0.0.dylib
  Referenced from: /Users/Nick/anaconda/lib/libssh2.1.dylib
  Reason: image not found
[1]    8140 abort      curl 

There’s a SE post that suggests doing conda install libssh2 will fix it… and …

SUCCESS!!! :):grin:

THANK YOU ALL SO MUCH!

Hopefully no one else hits this. Looks like this patch will fix for others in the future, but this saved my sanity for now!