# HTTP and MbedTLS installation issues

**URL:** <https://discourse.julialang.org/t/http-and-mbedtls-installation-issues/15422>\
**Category:** Web Stack\
**Created:** [September 24, 2018, 10:15am UTC](https://discourse.julialang.org/t/http-and-mbedtls-installation-issues/15422 "2018-09-24T10:15:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexander-Barth](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alexander-barth/32/3692_2.png) [@Alexander-Barth](https://discourse.julialang.org/u/Alexander-Barth)\
**Post date:** [September 24, 2018, 10:15am UTC](https://discourse.julialang.org/t/http-and-mbedtls-installation-issues/15422/1 "2018-09-24T10:15:33Z")

</div>

I have some code requiring HTTP (and thus MbedTLS) which I need to run on a Linux machine with glib 2.12.  
I had to pin the MbedTLS version to 0.6.1 because of some glib incompatibilities ([https://github.com/JuliaWeb/MbedTLS.jl/issues/170](https://github.com/JuliaWeb/MbedTLS.jl/issues/170)).

Now MbedTLS passes it tests, but the tests of HTTP fail telling me that MbedTLS is not installed properly. How is this possible? I have also this issues after restarting Julia. I use Julia 1.0.0.

```julia

(v1.0) pkg> test MbedTLS
   Testing MbedTLS
    Status `/tmp/tmpwlds8k/Manifest.toml`
  [b99e7846] BinaryProvider v0.5.0
  [739be429] MbedTLS v0.6.1 ⚲
  [2a0f44e3] Base64 [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Base64`]
  [ade2ca70] Dates [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Dates`]
  [8ba89e20] Distributed [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Distributed`]
  [b77e0a4c] InteractiveUtils [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/InteractiveUtils`]
  [76f85450] LibGit2 [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/LibGit2`]
  [8f399da3] Libdl [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Libdl`]
  [37e2e46d] LinearAlgebra [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/LinearAlgebra`]
  [56ddb016] Logging [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Logging`]
  [d6f4376e] Markdown [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Markdown`]
  [44cfe95a] Pkg [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Pkg`]
  [de0858da] Printf [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Printf`]
  [3fa0cd96] REPL [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/REPL`]
  [9a3f8284] Random [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Random`]
  [ea8e919c] SHA [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/SHA`]
  [9e88b42a] Serialization [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Serialization`]
  [6462fe0b] Sockets [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Sockets`]
  [8dfed614] Test [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Test`]
  [cf7118a7] UUIDs [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/UUIDs`]
  [4ec0a83e] Unicode [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Unicode`]
   Testing MbedTLS tests passed 

(v1.0) pkg> test HTTP
   Testing HTTP
 Resolving package versions...
 Installed IterTools ─ v1.0.0
 Installed XMLDict ─── v0.3.0
    Status `/tmp/tmpfIb8PA/Manifest.toml`
  [b99e7846] BinaryProvider v0.5.0
  [864edb3b] DataStructures v0.13.0
  [8f5d6c58] EzXML v0.9.0
  [cd3eb016] HTTP v0.7.0
  [83e8ac13] IniFile v0.5.0
  [c8e1da08] IterTools v1.0.0
  [682c06a0] JSON v0.19.0
  [739be429] MbedTLS v0.6.2 ⚲
  [bac558e1] OrderedCollections v1.0.1
  [228000da] XMLDict v0.3.0
  [2a0f44e3] Base64 [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Base64`]
  [ade2ca70] Dates [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Dates`]
  [8ba89e20] Distributed [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Distributed`]
  [b77e0a4c] InteractiveUtils [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/InteractiveUtils`]
  [76f85450] LibGit2 [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/LibGit2`]
  [8f399da3] Libdl [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Libdl`]
  [37e2e46d] LinearAlgebra [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/LinearAlgebra`]
  [56ddb016] Logging [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Logging`]
  [d6f4376e] Markdown [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Markdown`]
  [a63ad114] Mmap [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Mmap`]
  [44cfe95a] Pkg [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Pkg`]
  [de0858da] Printf [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Printf`]
  [3fa0cd96] REPL [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/REPL`]
  [9a3f8284] Random [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Random`]
  [ea8e919c] SHA [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/SHA`]
  [9e88b42a] Serialization [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Serialization`]
  [6462fe0b] Sockets [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Sockets`]
  [2f01184e] SparseArrays [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/SparseArrays`]
  [8dfed614] Test [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Test`]
  [cf7118a7] UUIDs [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/UUIDs`]
  [4ec0a83e] Unicode [`/home/users/a/b/abarth/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Unicode`]
ERROR: LoadError: MbedTLS not installed properly, run Pkg.build("MbedTLS"), restart Julia and try again
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] top-level scope at /home/ulg/gher/abarth/.julia/packages/MbedTLS/McYwM/src/MbedTLS.jl:43
 [3] include at ./boot.jl:317 [inlined]
 [4] include_relative(::Module, ::String) at ./loading.jl:1038
 [5] include(::Module, ::String) at ./sysimg.jl:29
 [6] top-level scope at none:2
 [7] eval at ./boot.jl:319 [inlined]
 [8] eval(::Expr) at ./client.jl:389
 [9] top-level scope at ./none:3
in expression starting at /home/ulg/gher/abarth/.julia/packages/MbedTLS/McYwM/src/MbedTLS.jl:42
ERROR: LoadError: Failed to precompile MbedTLS [739be429-bea8-5141-9913-cc70e7f3736d] to /home/ulg/gher/abarth/.julia/compiled/v1.0/MbedTLS/bf9T0.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] macro expansion at ./logging.jl:313 [inlined]
 [3] compilecache(::Base.PkgId, ::String) at ./loading.jl:1184
 [4] _require(::Base.PkgId) at ./logging.jl:311
 [5] require(::Base.PkgId) at ./loading.jl:852
 [6] macro expansion at ./logging.jl:311 [inlined]
 [7] require(::Module, ::Symbol) at ./loading.jl:834
 [8] include at ./boot.jl:317 [inlined]
 [9] include_relative(::Module, ::String) at ./loading.jl:1038
 [10] include(::Module, ::String) at ./sysimg.jl:29
 [11] top-level scope at none:2
 [12] eval at ./boot.jl:319 [inlined]
 [13] eval(::Expr) at ./client.jl:389
 [14] top-level scope at ./none:3
in expression starting at /home/ulg/gher/abarth/.julia/packages/HTTP/mwR9J/src/HTTP.jl:5
ERROR: LoadError: Failed to precompile HTTP [cd3eb016-35fb-5094-929b-558a96fad6f3] to /home/ulg/gher/abarth/.julia/compiled/v1.0/HTTP/zXWya.ji.
Stacktrace:

```

---

<div class="post-metadata">

**Author:** ![Ajaychat3](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@Ajaychat3](https://discourse.julialang.org/u/Ajaychat3)\
**Post date:** [September 24, 2018, 1:30pm UTC](https://discourse.julialang.org/t/http-and-mbedtls-installation-issues/15422/2 "2018-09-24T13:30:14Z")

</div>

MbedTLS sometimes fails to compile on my win 10 pc whenever I do a package installation or upgrade. However IJulia is still running fine on Julia 1.0. I wonder whether and how MbedTLS affects me.
