Closed szcf-weiya closed 2 years ago
R/4.1
to the local module file folder, and replace intel
with intel/2021.4
C++14
, use gcc>6.1 (https://gcc.gnu.org/projects/cxx-status.html), so module load gcc/10.3.0
, but it throws
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for ‘glmnet’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/storage01/users/s**********/R/x86_64-pc-linux-gnu-library/4.1/00LOCK-glmnet/00new/glmnet/libs/glmnet.so':
/storage01/users/s**********/R/x86_64-pc-linux-gnu-library/4.1/00LOCK-glmnet/00new/glmnet/libs/glmnet.so: undefined symbol: _gfortran_runtime_error_at
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/storage01/users/s**********/R/x86_64-pc-linux-gnu-library/4.1/glmnet’
* restoring previous ‘/storage01/users/s**********/R/x86_64-pc-linux-gnu-library/4.1/glmnet’
FLIBS=-lgfortran -lm
although lgfortran
can be found in LD_LIBRARY_PATH
on chpc-gpu019, just use intel/2020u4 as suggested by Edward (check the email on Oct. 17), and re-install, since gcc has fulfilled the requirement
$ gcc --version
gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
Copyright (C) 2019 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.
I have installed
glmnet
before, but it failed tolibrary
it,Then try to re-install it, but it failed,
Try to add
~/.R/Makevar
as suggested in https://github.com/stan-dev/rstan/issues/892, it can start to compile but throw a new problemA guess
Note that
module load R/4.1
would loadintel
,but
intel
does not specify a version, however, there has been a newly addedintel
version recently (on Sep. 16), so it would load the new version2022.2
, which might not be compatible with the current R version.If so, a direct solution would be specify the version of
intel
in the modulefile ofR/4.1