-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Closed
Description
After upgrading to Windows 11 (previously in Windows 10 and had no issues installing and running xgboost gpu in R), I'm getting the following error:
C:\Program Files\R\R-4.5.1\bin>R CMD INSTALL xgboost_r_gpu_win64_82d846bbeb83c652a0b1dff0e3519e67569c4a3d.tar.gz
* installing to library 'C:/Program Files/R/R-4.5.1/library'
* installing *source* package 'xgboost' ...
** this is package 'xgboost' version '2.0.3.1'
** using staged installation
** libs
running 'src/Makefile.win' ...
make: Nothing to be done for 'all'.
installing to C:/Program Files/R/R-4.5.1/library/00LOCK-xgboost/00new/xgboost/libs/x64
** R
** data
** demo
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for 'xgboost' in inDL(x, as.logical(local), as.logical(now), ...):
unable to load shared object 'C:/Program Files/R/R-4.5.1/library/00LOCK-xgboost/00new/xgboost/libs/x64/xgboost.dll':
LoadLibrary failure: The specified module could not be found.
Error: loading failed
Execution halted
ERROR: loading failed
* removing 'C:/Program Files/R/R-4.5.1/library/xgboost'
* restoring previous 'C:/Program Files/R/R-4.5.1/library/xgboost'
C:\Program Files\R\R-4.5.1\bin>
Here is my session info:
> sessionInfo()
R version 4.5.1 (2025-06-13 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 11 x64 (build 26200)
Matrix products: default
LAPACK version 3.12.1
locale:
[1] LC_COLLATE=English_United States.utf8 LC_CTYPE=English_United States.utf8 LC_MONETARY=English_United States.utf8 LC_NUMERIC=C
[5] LC_TIME=English_United States.utf8
time zone: America/New_York
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.5.1 tools_4.5.1 rstudioapi_0.17.1
I've added R and RTools to Windows PATH like so:

Any direction would be greatly appreciated as I've tried a lot of SO responses and other suggestions with no luck!
Metadata
Metadata
Assignees
Labels
No labels