GLIBCXX_3.4.26 not found in RCall

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:

7 Likes