我是 linux 的新手,我正在使用服务器通过 qsub xx.pbs 运行我的 R 代码。当我库“Rcpp”包时,出现此错误:
Error: package or namespace load failed for ‘Rcpp’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/data/user77/Rlib/Rcpp/libs/Rcpp.so':
/lib64/libc.so.6: version `GLIBC_2.14' not found (required by /data/user77/Rlib/Rcpp/libs/Rcpp.so)
但是,当我使用 ldd --version
查找 glibc
的当前版本时,我得到了:
ldd (GNU libc) 2.17
当我运行 /lib64/libc.so.6
时,我得到了这个:
GNU C Library (GNU libc) stable release version 2.17, by Roland McGrath et al.
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.4.7 20120313 (Red Hat 4.4.7-23).
Compiled on a Linux 2.6.32 system on 2021-01-02.
我该如何解决这个问题?非常感谢您提供解决方案!
(PS:我不允许使用sudo。)