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

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

Closed
non-Jedi opened this issue Apr 1, 2021 · 1 comment
Closed

Comments

@non-Jedi
Copy link

non-Jedi commented Apr 1, 2021

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
Copy link
Author

non-Jedi commented Apr 4, 2021

Duplicate of JuliaLang/julia#40198

@non-Jedi non-Jedi closed this as completed Apr 4, 2021
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

1 participant