简体   繁体   English

R 包“xgboost”安装失败

[英]R package "xgboost" installation fails

I try to install the xgboost package.我尝试安装xgboost包。 But I stumble upon this error但我偶然发现了这个错误

* 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)

I try to install this package from github with this command我尝试使用此命令从 github 安装此软件包

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

"xgboost" is also available on CRAN . “xgboost”也可在CRAN 上使用 So you just need to run install.packages("xgboost") takes care of everything :)所以你只需要运行install.packages("xgboost")来处理一切:)

I had xgboost installation issues but could install an older archived version ('0.90.0.2') with我有 xgboost 安装问题,但可以安装较旧的存档版本 ('0.90.0.2')

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

install.packages(packageurl, repos=NULL, type="source")

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM