0

I tried to install the package stringr but failed for several times.

The error shows:

library(stringr) Error: package or namespace load failed for ‘stringr’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/usr/local/Cluster-Apps/R/R.4.0.3/library/stringi/libs/stringi.so': /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /usr/local/Cluster-Apps/R/R.4.0.3/library/stringi/libs/stringi.so)

I also tried to install stringi but failed as well for the same error.

Does anyone know how what happened and how can I deal with it? Thank you so much!

Mark
  • 7,785
  • 2
  • 14
  • 34
Jinggggggg
  • 21
  • 1
  • 2
    What version of R are you using? Typically it's either too old or (occasionally) very very new versions of R that cause such issues. – Paul Stafford Allen Jul 03 '23 at 11:27
  • 1
    If you could include the output of `Sys.info()`, that'd be great! – Mark Jul 03 '23 at 12:19
  • Many thanks! My R version is 4.0.3 – Jinggggggg Jul 04 '23 at 15:25
  • Thank you so much! Here is the info > Sys.info() sysname release "Linux" "3.10.0-1160.88.1.el7.x86_64" version nodename "#1 SMP Tue Mar 7 15:41:52 UTC 2023" "login-web-node-9" machine login "x86_64" "unknown" user effective_user – Jinggggggg Jul 04 '23 at 15:27
  • that's not *that* old, but maybe it causes some issues. Would you be able to update R and see if that helps? – Mark Jul 20 '23 at 15:50
  • See: https://bootstrappers.umassmed.edu/bootstrappers-courses/courses/rCourse/Additional_Resources/Updating_R.html#updating-r – Mark Jul 20 '23 at 15:50
  • Sometimes it helps to `remove.packages('stringr')` and then to try to install. – Michael Dewar Jul 24 '23 at 08:10

0 Answers0