JuliaPy / JuliaPy/pyjulia

"GLIBCXX_3.4.22 not found" when used from ipykernel

Open
#223 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
893
Forks
101
PR merge metrics
No merged PRs in 30d

Description

In case you get an error like this

> ```OSError: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /PATH/TO/julia-1.0.2/bin/../lib/julia/libLLVM-6.0.so)```

when using PyJulia via Jupyter (ipykernel), you can workaround the issue by using the `LD_PRELOAD` trick. For example, edit your `~/.local/share/jupyter/kernels/*/kernel.json` like this:

```diff
--- a/kernel.json
+++ b/kernel.json
@@ -1,7 +1,5 @@
{
"argv": [
+ "env",
+ "LD_PRELOAD=/PATH/TO/julia-1.0.2/lib/julia/libstdc++.so.6",
"/usr/bin/python",
"-m",
"ipykernel_launcher",
```

Maybe it's better to have a helper command for executing a subprocess with appropriate `LD_PRELOAD` (or `LD_LIBRARY_PATH`)?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.