Installing IJulia with Julia1.0 behind corporate firewall

Hi all,

I am trying to install IJulia at work, but it fails building MbedTLS with this error:

(v1.0) pkg> build IJulia
Building Conda ──→ ~/.julia/packages/Conda/m7vem/deps/build.log
Building ZMQ ────→ ~/.julia/packages/ZMQ/ABGOx/deps/build.log
Building MbedTLS → ~/.julia/packages/MbedTLS/Qo8TN/deps/build.log
┌ Error: Error building MbedTLS:
│ [ Info: Downloading https://github.com/JuliaWeb/MbedTLSBuilder/releases/download/v0.11/MbedTLS.v1.0.0.x86_64-linux-gnu.tar.gz to /u1/vian294/.julia/packages/MbedTLS/Qo8TN/deps/usr/downloads/MbedTLS.v1.0.0.x86_64-linux-gnu.tar.gz…
│ ERROR: LoadError: Could not download https://github.com/JuliaWeb/MbedTLSBuilder/releases/download/v0.11/MbedTLS.v1.0.0.x86_64-linux-gnu.tar.gz to /u1/vian294/.julia/packages/MbedTLS/Qo8TN/deps/usr/downloads/MbedTLS.v1.0.0.x86_64-linux-gnu.tar.gz:
│ ErrorException(“”)
│ Stacktrace:
│ [1] error(::String) at ./error.jl:33
│ [2] macro expansion at ./logging.jl:313 [inlined]
│ [3] #download#89(::Bool, ::Function, ::String, ::String) at /u1/vian294/.julia/packages/BinaryProvider/UTYxu/src/PlatformEngines.jl:443
│ [4] #download at ./none:0 [inlined]
│ [5] #download_verify#90(::Bool, ::Bool, ::Bool, ::Function, ::String, ::String, ::String) at /u1/vian294/.julia/packages/BinaryProvider/UTYxu/src/PlatformEngines.jl:523
│ [6] #download_verify at ./none:0 [inlined]
│ [7] #install#111(::Prefix, ::String, ::Bool, ::Bool, ::Bool, ::Function, ::String, ::String) at /u1/vian294/.julia/packages/BinaryProvider/UTYxu/src/Prefix.jl:353
│ [8] (::getfield(BinaryProvider, Symbol(“#kw##install”)))(::NamedTuple{(:prefix, :force, :verbose),Tuple{Prefix,Bool,Bool}}, ::typeof(install), ::String, ::String) at ./none:0
│ [9] top-level scope at /u1/vian294/.julia/packages/MbedTLS/Qo8TN/deps/build.jl:45
│ [10] include at ./boot.jl:317 [inlined]
│ [11] include_relative(::Module, ::String) at ./loading.jl:1038
│ [12] include(::Module, ::String) at ./sysimg.jl:29
│ [13] include(::String) at ./client.jl:388
│ [14] top-level scope at none:0
│ in expression starting at /u1/vian294/.julia/packages/MbedTLS/Qo8TN/deps/build.jl:41
[18:12:51] ######################################################################## 100.0%
│ [18:12:51] curl: (60) Peer’s Certificate issuer is not recognized.
│ [18:12:51] More details here: curl - SSL CA Certificates
│ [18:12:51]
│ [18:12:51] curl performs SSL certificate verification by default, using a “bundle”
│ [18:12:51] of Certificate Authority (CA) public keys (CA certs). If the default
│ [18:12:51] bundle file isn’t adequate, you can specify an alternate file
│ [18:12:51] using the --cacert option.
│ [18:12:51] If this HTTPS server uses a certificate signed by a CA represented in
│ [18:12:51] the bundle, the certificate verification probably failed due to a
│ [18:12:51] problem with the certificate (it might be expired, or the name might
│ [18:12:51] not match the domain name in the URL).
│ [18:12:51] If you’d like to turn off curl’s verification of the certificate, use
│ [18:12:51] the -k (or --insecure) option.
└ @ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Operations.jl:1068
Building IJulia ─→ ~/.julia/dev/IJulia/deps/build.log
Resolving package versions…

julia> versioninfo()
Julia Version 1.0.0
Commit 5d4eaca0c9 (2018-08-08 20:58 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Xeon(R) CPU E5-2640 v4 @ 2.40GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.0 (ORCJIT, broadwell)

the problem seems to be downloading from github being behind a firewall,

how can I tell julia not to check for the ssl certificate, for instance I need to give this to conda before installing jupyterlab

conda config --set ssl_verify false

thanks,
andrea

1 Like

I think I found how to install IJulia from windows with julia1.0:

go to the conda installation in your home directory, for me was .julia\packages\Conda\m7vem\deps\usr\Scripts

from there run
.\conda.exe install -c conda-forge jupyter

similarly for PyPlot, run
.\conda.exe install -c conda-forge matplotlib