JuliaLang / MbedTLS.jl

Wrapper around mbedtls
Other
41 stars 50 forks source link

LoadError: InitError: could not load library "libmbedcrypto.so.5" #234

Closed non-Jedi closed 3 years ago

non-Jedi commented 3 years ago

When I do using IJulia, I get the following backtrace. I thought it had something to do with building julia 1.6.0 with USE_SYSTEM_MBEDTLS=1, but I got the same error after rebuilding with that flag set to 0.

julia> using IJulia
[ Info: Precompiling IJulia [7073ff75-c697-5162-941a-fcdaad2a7d2a]
ERROR: LoadError: InitError: could not load library "libmbedcrypto.so.5"
libmbedcrypto.so.5: cannot open shared object file: No such file or directory
Stacktrace:
 [1] __init__()
   @ MbedTLS_jll /usr/share/julia/stdlib/v1.6/MbedTLS_jll/src/MbedTLS_jll.jl:40
 [2] top-level scope (repeats 2 times)
   @ none:1
during initialization of module MbedTLS_jll
in expression starting at /home/adam/.julia/packages/MbedTLS/4YY6E/src/MbedTLS.jl:1
ERROR: LoadError: LoadError: Failed to precompile MbedTLS [739be429-bea8-5141-9913-cc70e7f3736d] to /home/adam/.julia/compiled/v1.6/MbedTLS/jl_DXmLIF.
Stacktrace:
 [1] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY)
   @ Base ./loading.jl:1360
 [2] include(x::String)
   @ IJulia ~/.julia/packages/IJulia/e8kqU/src/IJulia.jl:33
 [3] top-level scope
   @ ~/.julia/packages/IJulia/e8kqU/src/IJulia.jl:309
 [4] top-level scope (repeats 2 times)
   @ none:1
in expression starting at /home/adam/.julia/packages/IJulia/e8kqU/src/hmac.jl:1
in expression starting at /home/adam/.julia/packages/IJulia/e8kqU/src/IJulia.jl:1
ERROR: Failed to precompile IJulia [7073ff75-c697-5162-941a-fcdaad2a7d2a] to /home/adam/.julia/compiled/v1.6/IJulia/jl_MhW1UQ.
Stacktrace:
 [1] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY)
   @ Base ./loading.jl:1360

Platform is linux. Julia 1.6.0 is built with:

 USE_BINARYBUILDER=0 USE_SYSTEM_LIBM=0 USE_SYSTEM_DSFMT=0 USE_SYSTEM_LIBUV=0
 USE_SYSTEM_SUITESPARSE=0 USE_SYSTEM_BLAS=0 USE_SYSTEM_LAPACK=0 USE_SYSTEM_LLVM=1
 USE_SYSTEM_LIBUNWIND=1 USE_SYSTEM_PCRE=1 USE_SYSTEM_GMP=1 USE_SYSTEM_PATCHELF=1
 USE_SYSTEM_MPFR=1 USE_SYSTEM_MBEDTLS=1 USE_SYSTEM_LIBSSH2=1 USE_SYSTEM_NGHTTP2=1
 USE_SYSTEM_CURL=1 USE_SYSTEM_ZLIB=1 USE_SYSTEM_P7ZIP=1 USE_SYSTEM_LIBGIT2=1
 USE_SYSTEM_UTF8PROC=1
non-Jedi commented 3 years ago

Duplicate of https://github.com/JuliaLang/julia/issues/40198