Through help on Slack by @staticfloat it became clear that the underlying problem is, that the Julia provided libstdc++.so.6
is older than the one provided by the operating system, in my case Ubuntu 19.10, which in turn is used by R.
An intermediate solution is to replace Julias libstdc++.so.6
with the one from the OS:
# works for Ubuntu 19.10 64bit - match your locations accordingly!
cp /usr/lib/x86_64-linux-gnu/libstdc++.so.6 $JULIA_HOME/lib/julia/
For completeness a list of references of this issue:
- GLIBCXX_3.4.26 not found · Issue #339 · JuliaInterop/RCall.jl · GitHub (initial issue)
-
julia_setup (still) failing on Ubuntu 16.04 (Julia 1.1.1) · Issue #110 · Non-Contradiction/JuliaCall · GitHub (I think wrongly interpreted as just not finding the right
so
) (I think wrongly interpreted as just not finding the rightso
) - Unable to load libjulia.so because `GLIBCXX_3.4.20' not found · Issue #1 · Non-Contradiction/JuliaCall · GitHub