Skip to content

Instantly share code, notes, and snippets.

@slowkow
Created July 5, 2018 15:03
Show Gist options
  • Save slowkow/6f9903f15e87d66849cbdd08ac586c79 to your computer and use it in GitHub Desktop.
Save slowkow/6f9903f15e87d66849cbdd08ac586c79 to your computer and use it in GitHub Desktop.
version `GLIBCXX_3.4.20' not found

Problem

** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
Error: package or namespace load failed for ‘Rcpp’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/PHShome/ks38/.local/lib/R/x86_64-linux-gnu-library/3.4/Rcpp/libs/Rcpp.so':
  /PHShome/ks38/.local/lib/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /PHShome/ks38/.local/lib/R/x86_64-lin
ux-gnu-library/3.4/Rcpp/libs/Rcpp.so)
Error: loading failed
3: (function ()
   {
     ...
2: stop("loading failed", call. = FALSE)
1: tools:::.test_load_package("Rcpp", "/PHShome/ks38/.local/lib/R/x86_64-linux-gnu-library/3.4")
ERROR: loading failed
* removing ‘/PHShome/ks38/.local/lib/R/x86_64-linux-gnu-library/3.4/Rcpp’
* restoring previous ‘/PHShome/ks38/.local/lib/R/x86_64-linux-gnu-library/3.4/Rcpp’

The downloaded source packages are in
        ‘/tmp/RtmpQfUSll/downloaded_packages’
Warning message:
In install.packages("Rcpp") :
  installation of package ‘Rcpp’ had non-zero exit status

Solution

On the Partners server:

ln -sf /source/gcc/6.3.0/lib64/libstdc++.so.6.0.22 \
       /PHShome/ks38/.local/lib/libstdc++.so.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment