# Anaconda IJulia installing issue (MbedTLS)

**URL:** <https://discourse.julialang.org/t/anaconda-ijulia-installing-issue-mbedtls/28994>\
**Category:** Tooling\
**Tags:** jupyter\
**Created:** [September 20, 2019, 11:00am UTC](https://discourse.julialang.org/t/anaconda-ijulia-installing-issue-mbedtls/28994 "2019-09-20T11:00:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dito](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dito/32/10039_2.png) [@Dito](https://discourse.julialang.org/u/Dito)\
**Post date:** [September 20, 2019, 11:00am UTC](https://discourse.julialang.org/t/anaconda-ijulia-installing-issue-mbedtls/28994/1 "2019-09-20T11:00:47Z")

</div>

I can’t install IJulia on my notebook (High Sierra Version 10.13.6; Julia version 1.2) - Error building **‘MbedTLS’**

```julia
julia> using Pkg

julia> Pkg.build("IJulia")
  Building Conda ──→ `~/.julia/packages/Conda/kLXeC/deps/build.log`
  Building ZMQ ────→ `~/.julia/packages/ZMQ/ABGOx/deps/build.log`
  Building MbedTLS → `~/.julia/packages/MbedTLS/a1JFn/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.17.0/MbedTLS.v2.16.0.x86_64-apple-darwin14.tar.gz to /Users/dimitri.arutinovi/.julia/packages/MbedTLS/a1JFn/deps/usr/downloads/MbedTLS.v2.16.0.x86_64-apple-darwin14.tar.gz...
│ ERROR: LoadError: Could not download https://github.com/JuliaWeb/MbedTLSBuilder/releases/download/v0.17.0/MbedTLS.v2.16.0.x86_64-apple-darwin14.tar.gz to /Users/dimitri.arutinovi/.julia/packages/MbedTLS/a1JFn/deps/usr/downloads/MbedTLS.v2.16.0.x86_64-apple-darwin14.tar.gz:
│ ErrorException("")
│ Stacktrace:
│ [1] error(::String) at ./error.jl:33
│ [2] #download#89(::Bool, ::typeof(BinaryProvider.download), ::String, ::String) at /Users/dimitri.arutinovi/.julia/packages/BinaryProvider/TcAwt/src/PlatformEngines.jl:498
│ [3] #download at ./none:0 [inlined]
│ [4] #download_verify#90(::Bool, ::Bool, ::Bool, ::typeof(download_verify), ::String, ::String, ::String) at /Users/dimitri.arutinovi/.julia/packages/BinaryProvider/TcAwt/src/PlatformEngines.jl:567
│ [5] #download_verify at ./tuple.jl:0 [inlined]
│ [6] #install#129(::Prefix, ::String, ::Bool, ::Bool, ::Bool, ::typeof(install), ::String, ::String) at /Users/dimitri.arutinovi/.julia/packages/BinaryProvider/TcAwt/src/Prefix.jl:314
│ [7] (::getfield(BinaryProvider, Symbol("#kw##install")))(::NamedTuple{(:prefix, :force, :verbose),Tuple{Prefix,Bool,Bool}}, ::typeof(install), ::String, ::String) at ./tuple.jl:0
│ [8] top-level scope at /Users/dimitri.arutinovi/.julia/packages/MbedTLS/a1JFn/deps/build.jl:48
│ [9] include at ./boot.jl:328 [inlined]
│ [10] include_relative(::Module, ::String) at ./loading.jl:1094
│ [11] include(::Module, ::String) at ./Base.jl:31
│ [12] include(::String) at ./client.jl:431
│ [13] top-level scope at none:5
│ in expression starting at /Users/dimitri.arutinovi/.julia/packages/MbedTLS/a1JFn/deps/build.jl:44
│ caused by [exception 1]
│ 
│ Stacktrace:
│ [1] error() at ./error.jl:42
│ [2] #download#89(::Bool, ::typeof(BinaryProvider.download), ::String, ::String) at /Users/dimitri.arutinovi/.julia/packages/BinaryProvider/TcAwt/src/PlatformEngines.jl:492
│ [3] #download at ./none:0 [inlined]
│ [4] #download_verify#90(::Bool, ::Bool, ::Bool, ::typeof(download_verify), ::String, ::String, ::String) at /Users/dimitri.arutinovi/.julia/packages/BinaryProvider/TcAwt/src/PlatformEngines.jl:567
│ [5] #download_verify at ./tuple.jl:0 [inlined]
│ [6] #install#129(::Prefix, ::String, ::Bool, ::Bool, ::Bool, ::typeof(install), ::String, ::String) at /Users/dimitri.arutinovi/.julia/packages/BinaryProvider/TcAwt/src/Prefix.jl:314
│ [7] (::getfield(BinaryProvider, Symbol("#kw##install")))(::NamedTuple{(:prefix, :force, :verbose),Tuple{Prefix,Bool,Bool}}, ::typeof(install), ::String, ::String) at ./tuple.jl:0
│ [8] top-level scope at /Users/dimitri.arutinovi/.julia/packages/MbedTLS/a1JFn/deps/build.jl:48
│ [9] include at ./boot.jl:328 [inlined]
│ [10] include_relative(::Module, ::String) at ./loading.jl:1094
│ [11] include(::Module, ::String) at ./Base.jl:31
│ [12] include(::String) at ./client.jl:431
│ [13] top-level scope at none:5
│ [14:43:52] #=#=# [14:43:52] ##O#- # [14:43:52] 
│ [14:43:52] curl: (60) SSL certificate problem: self signed certificate in certificate chain
│ [14:43:52] More details here: https://curl.haxx.se/docs/sslcerts.html
│ [14:43:52] 
│ [14:43:52] curl failed to verify the legitimacy of the server and therefore could not
│ [14:43:52] establish a secure connection to it. To learn more about this situation and
│ [14:43:52] how to fix it, please visit the web page mentioned above.
└ @ Pkg.Operations /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.2/Pkg/src/backwards_compatible_isolation.jl:647
  Building IJulia ─→ `~/.julia/packages/IJulia/fRegO/deps/build.log`
false

```

I also want to know how to solve this problem - \> curl: (60) SSL certificate problem:

---

<div class="post-metadata">

**Author:** ![Mattriks](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mattriks/32/351_2.png) [@Mattriks](https://discourse.julialang.org/u/Mattriks)\
**Post date:** [September 20, 2019, 11:23am UTC](https://discourse.julialang.org/t/anaconda-ijulia-installing-issue-mbedtls/28994/2 "2019-09-20T11:23:51Z")

</div>

> [@Issues installing a range of packages](https://discourse.julialang.org/t/issues-installing-a-range-of-packages/21894):
>
> 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.ta…

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [September 21, 2019, 6:40pm UTC](https://discourse.julialang.org/t/anaconda-ijulia-installing-issue-mbedtls/28994/3 "2019-09-21T18:40:26Z")

</div>

A common issue seems to be that Julia uses `curl` to download stuff, so if you have a broken `curl` in your PATH it will break package installation.

In particular, I’ve noticed that on MacOS people who install Anaconda often have a broken `curl` when their Anaconda installation gets old, especially if the update to a newer OS version. BinaryProvider was recently patched to use `/usr/bin/curl` on MacOS for this reason, but I don’t think that fix is in a tagged release yet:

[https://github.com/JuliaPackaging/BinaryProvider.jl/pull/179](https://github.com/JuliaPackaging/BinaryProvider.jl/pull/179)

In the meantime, you can type `which curl` to see what `curl` is in your PATH, and if it isn’t `/usr/bin/curl` you might want to change your PATH.

---

<div class="post-metadata">

**Author:** ![compleat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/compleat/32/8958_2.png) [@compleat](https://discourse.julialang.org/u/compleat)\
**Post date:** [May 2, 2020, 8:10pm UTC](https://discourse.julialang.org/t/anaconda-ijulia-installing-issue-mbedtls/28994/4 "2020-05-02T20:10:20Z")

</div>

I am on Mac OSX. I changed the path from a conda directory so that which curl now gives /usr/bin/curl as suggested, but it did not resolve this issue: MbedTLS will not install with add, and it cannot be found when I try to build.

I would be grateful for any other ideas, as I can’t use Julia 1.4 properly until I fix this.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [May 2, 2020, 8:25pm UTC](https://discourse.julialang.org/t/anaconda-ijulia-installing-issue-mbedtls/28994/5 "2020-05-02T20:25:45Z")

</div>

What is your exact error message? What is `Sys.which("curl")` in Julia?

---

<div class="post-metadata">

**Author:** ![compleat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/compleat/32/8958_2.png) [@compleat](https://discourse.julialang.org/u/compleat)\
**Post date:** [May 4, 2020, 11:48am UTC](https://discourse.julialang.org/t/anaconda-ijulia-installing-issue-mbedtls/28994/6 "2020-05-04T11:48:34Z")

</div>

Thanks. You helped me find it. Works now.
