I am getting an error when I am trying to install xgboost_1.3.2.1 in R V4.0.5
The error
Error: package or namespace load failed for ‘xgboost’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/opt/R/4.0.5/lib/R/library/00LOCK-
xgboost/00new/xgboost/libs/xgboost.so':
/usr/local/lib64/libstdc++.so.6: version `GLIBCXX_3.4.23' not found (required by
/opt/R/4.0.5/lib/R/library/00LOCK-xgboost/00new/xgboost/libs/xgboost.so)
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/opt/R/4.0.5/lib/R/library/xgboost’
The session info :
R version 4.0.5 (2021-03-31)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Red Hat Enterprise Linux
Matrix products: default
BLAS/LAPACK: /usr/lib64/libopenblasp-r0.3.3.so
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8
LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8
LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.0.5 magrittr_2.0.1 Matrix_1.3-2 tools_4.0.5 grid_4.0.5
data.table_1.14.0
[7] lattice_0.20-41
I can install the XGboost in the linux with no problem. But when I try to load it in the Rstudio Server, I still get the same error
library("xgboost") Error: package or namespace load failed for ‘xgboost’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/opt/R/4.0.5/lib/R/library/xgboost/libs/xgboost.so': /usr/local/lib64/libstdc++.so.6: version `GLIBCXX_3.4.23' not found (required by /opt/R/4.0.5/lib/R/library/xgboost/libs/xgboost.so)