I try to install the xgboost
package. 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
devtools::install_github('dmlc/xgboost',subdir='R-package')
"xgboost" is also available on CRAN . So you just need to run install.packages("xgboost")
takes care of everything :)
install.packages("xgboost")
from CRAN, as @Fitzerbirth showedhttps://github.com/dmlc/xgboost
, follow their instructions at http://xgboost.readthedocs.io/en/latest/build.htmldownload.file.method = "libcurl"
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")
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.