Jupyter-notebook cannot connect Julia kernel

Hi, I installed Julia both using directions here Installation · IJulia and using conda-forge. But none of this works for jupyter-notebook, as shown in the picture:

Errors from terminal:

WARNING: Error during initialization of module GMP:
ErrorException(“PCRE compilation error: unrecognised compile-time option bit(s) at offset 0”)
ERROR: LoadError: Could not find MD type for kind MD_SHA256
[1] error(s::String)
@ Base ./error.jl:35
[2] MDInfo
@ ~/.julia/packages/MbedTLS/Vaaz8/src/md.jl:38 [inlined]
[3] MbedTLS.MD(kind::MbedTLS.MDKind, key::String)
@ MbedTLS ~/.julia/packages/MbedTLS/Vaaz8/src/md.jl:82
[4] init(args::Vector{String})
@ IJulia ~/.julia/packages/IJulia/Vo51o/src/init.jl:79
[5] top-level scope
@ ~/.julia/packages/IJulia/Vo51o/src/kernel.jl:24

If you google this error message, it turns up an explanation in this issue — essentially, it sounds like you have the LD_LIBRARY_PATH set in such a way that julia loads the wrong version of the PCRE library.

Hi Steve, actually I tried this command in that thread Can't start julia-1.8.5 on hcp with Linux · Issue #48873 · JuliaLang/julia · GitHub before seeing this issue. Before this, the julia cannot even start in the terminal.

So how to set the LD_LIBRARY_PATH correctly so the jupyter-notebook can run?