# Jupyter-notebook cannot connect Julia kernel

**URL:** https://discourse.julialang.org/t/jupyter-notebook-cannot-connect-julia-kernel/113814
**Category:** New to Julia
**Created:** [May 3, 2024, 7:12pm UTC](https://discourse.julialang.org/t/jupyter-notebook-cannot-connect-julia-kernel/113814 "2024-05-03T19:12:04Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![appletree999](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/appletree999/32/208991_2.png) [@appletree999](https://discourse.julialang.org/u/appletree999)
#### Post date: [May 3, 2024, 7:12pm UTC](https://discourse.julialang.org/t/jupyter-notebook-cannot-connect-julia-kernel/113814/1 "2024-05-03T19:12:04Z")

</div>

Hi, I installed Julia both using directions here [Installation · IJulia](https://julialang.github.io/IJulia.jl/stable/manual/installation/) and using conda-forge. But none of this works for jupyter-notebook, as shown in the picture:

 ![thumbnail_image](https://global.discourse-cdn.com/julialang/original/3X/c/e/cecd3911b682f9c69545a78280e3470052231773.png)

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  
Stacktrace:  
[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

---

<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 3, 2024, 7:24pm UTC](https://discourse.julialang.org/t/jupyter-notebook-cannot-connect-julia-kernel/113814/2 "2024-05-03T19:24:44Z")

</div>

> [@appletree999](#):
>
> ErrorException(“PCRE compilation error: unrecognised compile-time option bit(s) at offset 0”)

If you google this error message, it turns up an explanation in [this issue](https://github.com/JuliaLang/julia/issues/48873) — 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.

---

<div class="post-metadata">

### Author: ![appletree999](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/appletree999/32/208991_2.png) [@appletree999](https://discourse.julialang.org/u/appletree999)
#### Post date: [May 3, 2024, 8:53pm UTC](https://discourse.julialang.org/t/jupyter-notebook-cannot-connect-julia-kernel/113814/3 "2024-05-03T20:53:10Z")

</div>

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](https://github.com/JuliaLang/julia/issues/48873#issuecomment-1453797177) 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?
