Skip to content

Commit

Permalink
Merge branch 'master' into preferences-r-installation
Browse files Browse the repository at this point in the history
  • Loading branch information
palday committed Sep 14, 2023
2 parents d28b097 + ba1ea5c commit a3d2404
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/src/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ The following will update R on recent versions of Ubuntu:

See also the official documentation on [CRAN: Ubuntu Packages For R](https://cloud.r-project.org/bin/linux/ubuntu/).

### Julia ≤ 1.5: Failure on recent Linux distributions
### Julia ≤ 1.8: Failure on recent Linux distributions

The version of `libstdc++` shipped by Julia might be outdated if you are using a recent Linux distribution (e.g. Ubuntu 19.10) and make use of certain R packages (e.g. `Rcpp`). In this case RCall will fail with an error message looking similar to this:

Expand All @@ -82,12 +82,12 @@ The version of `libstdc++` shipped by Julia might be outdated if you are using a
/home/user/julia-1.3.1/bin/../lib/julia/libstdc++.so.6: version `GLIBCXX_3.4.26' not found
(required by /home/user/R/x86_64-pc-linux-gnu-library/3.6/Rcpp/libs/Rcpp.so)

Until this issue is fixed in Julia (see https://github.com/JuliaLang/julia/issues/34276) a workaround is to replace Julias `libstdc++` with the one of your OS:
This issue was fixed in Julia 1.9 (see https://github.com/JuliaLang/julia/issues/34276) but a workaround for older Julia versions is to replace Julia's `libstdc++` with the one of your OS:

# works for Ubuntu 19.10 64bit - match your locations accordingly!
# works for Ubuntu 19.10 64-bit - match your locations accordingly!
cp /usr/lib/x86_64-linux-gnu/libstdc++.so.6 $JULIA_HOME/lib/julia/

This problem doesn't affect Julia ≥ 1.6!
This problem doesn't affect Julia ≥ 1.9!

### Other methods

Expand Down

0 comments on commit a3d2404

Please sign in to comment.