Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error building ZMQ on Ubuntu 16.04, for Julia 1.0.3 #191

Closed
Omer80 opened this issue Jan 3, 2019 · 2 comments
Closed

Error building ZMQ on Ubuntu 16.04, for Julia 1.0.3 #191

Omer80 opened this issue Jan 3, 2019 · 2 comments

Comments

@Omer80
Copy link

Omer80 commented Jan 3, 2019

I added ZMQ in Julia 1.0.3, but when trying to build the package I get an error message:

(v1.0) pkg> add ZMQ
  Updating registry at `~/.julia/registries/General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
 Resolving package versions...
[ Info: Installed StatsBase ──── v0.27.0
[ Info: Installed StaticArrays ─ v0.10.2
  Updating `~/.julia/environments/v1.0/Project.toml`
  [c2297ded] + ZMQ v1.0.0
  Updating `~/.julia/environments/v1.0/Manifest.toml`
  [90137ffa] ↑ StaticArrays v0.10.0 ⇒ v0.10.2
  [2913bbd2] ↑ StatsBase v0.26.0 ⇒ v0.27.0
(v1.0) pkg> build ZMQ
  Building ZMQ → `~/.julia/packages/ZMQ/ABGOx/deps/build.log`
┌ Error: Error building `ZMQ`: 
│ ┌ Warning: platform_key() is deprecated, use platform_key_abi() from now on
│ │   caller = ip:0x0
│ └ @ Core :-1
│ ┌ Warning: Could not extract the platform key of https://github.com/JuliaInterop/ZMQBuilder/releases/download/v4.2.5+6/ZMQ.x86_64-linux-gnu.tar.gz; continuing...
│ └ @ BinaryProvider ~/.julia/packages/BinaryProvider/4F5Hq/src/Prefix.jl:185
│ [ Info: Downloading https://github.com/JuliaInterop/ZMQBuilder/releases/download/v4.2.5+6/ZMQ.x86_64-linux-gnu.tar.gz to /home/ohm/.julia/packages/ZMQ/ABGOx/deps/usr/downloads/ZMQ.x86_64-linux-gnu.tar.gz...
│ ERROR: LoadError: Could not download https://github.com/JuliaInterop/ZMQBuilder/releases/download/v4.2.5+6/ZMQ.x86_64-linux-gnu.tar.gz to /home/ohm/.julia/packages/ZMQ/ABGOx/deps/usr/downloads/ZMQ.x86_64-linux-gnu.tar.gz:
│ ErrorException("")
│ Stacktrace:
│  [1] error(::String) at ./error.jl:33
│  [2] #download#89(::Bool, ::Function, ::String, ::String) at /home/ohm/.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 /home/ohm/.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 /home/ohm/.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 /home/ohm/.julia/packages/ZMQ/ABGOx/deps/build.jl:44
│  [9] include at ./boot.jl:317 [inlined]
│  [10] include_relative(::Module, ::String) at ./loading.jl:1044
│  [11] include(::Module, ::String) at ./sysimg.jl:29
│  [12] include(::String) at ./client.jl:392
│  [13] top-level scope at none:0
│ in expression starting at /home/ohm/.julia/packages/ZMQ/ABGOx/deps/build.jl:40
│ [07:06:22] 
│ [07:06:22] curl: (77) error setting certificate verify locations:
│ [07:06:22]   CAfile: /etc/pki/tls/certs/ca-bundle.crt
│ [07:06:22]   CApath: none
└ @ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Operations.jl:1097

(v1.0) pkg> 
@stevengj
Copy link
Contributor

stevengj commented Jan 3, 2019

Seems to be the same as JuliaPackaging/BinDeps.jl#122 — download failure due to some problem in your certificate setup. See that issue for ways to fix the problem.

@Omer80
Copy link
Author

Omer80 commented Jan 4, 2019

Seems to be the same as JuliaPackaging/BinDeps.jl#122 — download failure due to some problem in your certificate setup. See that issue for ways to fix the problem.

Indeed putting cacert=/etc/ssl/certs/ca-certificates.crt into ~/.curlrc fixed the problem!

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants