1

我尝试安装xgboost软件包。但我偶然发现了这个错误

* installing *source* package 'xgboost' ...
** libs
Warning: running command 'make -f "Makevars.win" -f "C:/PROGRA~1/R/R-32~1.0/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-32~1.0/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="xgboost.dll" ' had status 127
ERROR: compilation failed for package 'xgboost'
* removing 'C:/Users/mancph01/Documents/R/win-library/3.2/xgboost'
Error: Command failed (1)

我尝试使用此命令从 github 安装此软件包

devtools::install_github('dmlc/xgboost',subdir='R-package')
4

3 回答 3

3

“xgboost”也可以在CRAN上使用。因此,您只需要运行即可install.packages("xgboost")处理所有事情:)

于 2015-10-12T18:59:53.560 回答
2
于 2017-02-23T23:53:35.693 回答
1

I had xgboost installation issues but could install an older archived version (‘0.90.0.2’) with

packageurl <- "http://cran.r- 
project.org/src/contrib/Archive/xgboost/xgboost_0.90.0.2.tar.gz"

install.packages(packageurl, repos=NULL, type="source")
于 2020-10-06T01:26:27.887 回答