[英]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')
install.packages("xgboost")
from CRAN, as @Fitzerbirth showedinstall.packages("xgboost")
,如@Fitzerbirth 所示https://github.com/dmlc/xgboost
, follow their instructions at http://xgboost.readthedocs.io/en/latest/build.htmlhttps://github.com/dmlc/xgboost
安装最新最好的源代码, https://github.com/dmlc/xgboost
按照http://xgboost.readthedocs.io/en/latest/build.html 上的说明进行操作download.file.method = "libcurl"
download.file.method = "libcurl"
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.