dyn.load中的错误(文件,DLLpath = DLLpath,...):无法加载共享对象'/ software / R ...',在LSF GNU / Linux服务器上安装dplyr

时间:2018-02-16 23:11:06

标签: r installation dplyr install packages

我尝试在脚本中使用以下代码在Linux服务器上安装'dplyr':

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

但在使用'Rscript code.R'运行之后,我收到了一条长消息,然后是:

 ** 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’

我尝试安装没有依赖项的'dplyr',它给出了相同的消息。

0 个答案:

没有答案