Error in dyn.load(file, DLLpath = DLLpath, …) : unable to load shared object '/software/R…', installing dplyr on LSF GNU/Linux server

余生颓废 提交于 2021-02-10 20:18:33

问题


I tried installing 'dplyr' on a Linux server using the following code in a script:

install.packages('dplyr', dependencies = TRUE, lib = 'output/software/r/package/installation/', 
                 repos = 'http://cran.rstudio.com')

but after running it with 'Rscript code.R' I got a long message followed by:

 ** package ‘dplyr’ successfully unpacked and MD5 sums checked
** libs

...

g++  -I/software/R-3.4.0/lib/R/include -DNDEBUG -I../inst/include -DCOMPILING_DPLYR -DBOOST_NO_INT64_T -DBOOST_NO_INTEGRAL_INT64_T -DBOOST_NO_LONG_LONG -DRCPP_USING_UTF8_ERROR_STRING -I"/lustre/.../project/output/software/r/package/installation/Rcpp/include" -I"/software/R-3.4.0/lib/R/library/BH/include" -I"/software/R-3.4.0/lib/R/library/bindrcpp/include" -I"/software/R-3.4.0/lib/R/library/plogr/include" -I/usr/local/include   -fpic  -g -O2  -c hybrid_offset.cpp -o hybrid_offset.o
...

g++ -shared -L/usr/local/lib -o dplyr.so RcppExports.o address.o api.o arrange.o between.o bind.o combine_variables.o distinct.o encoding.o filter.o group_by.o group_indices.o hybrid.o hybrid_count.o hybrid_debug.o hybrid_in.o hybrid_minmax.o hybrid_nth.o hybrid_offset.o hybrid_simple.o hybrid_window.o init.o join.o join_exports.o mutate.o rlang-export.o select.o set.o slice.o summarise.o test.o utils.o window.o
installing to /lustre/.../project/output/software/r/package/installation/dplyr/libs
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/software/R-3.4.0/lib/R/library/bindrcpp/libs/bindrcpp.so':
  /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /software/R-3.4.0/lib/R/library/bindrcpp/libs/bindrcpp.so)
ERROR: lazy loading failed for package ‘dplyr’

I tried installing 'dplyr' without the dependencies and it gives the same messages.

来源:https://stackoverflow.com/questions/48836154/error-in-dyn-loadfile-dllpath-dllpath-unable-to-load-shared-object

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!