LightGBM: Error when installing lgbm (windows7)

Environment info

Operating System: windows 7 CPU: R version:

Error Message:

capture

Steps to reproduce

git clone --recursive https://github.com/Microsoft/LightGBM
cd LightGBM/R-package
Rscript build_package.R

built the .tar.gz file and i installed it via Rstudio and got the error.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 16 (1 by maintainers)

Most upvoted comments

@germayneng when I removing the Rtools from path, i got the similar error:

** libs
Warning: running command 'make -f "Makevars.win" -f "C:/PROGRA~1/R/R-34~1.1/etc/x64/Makeconf" -f "C:/PROGRA~1/R/R-34~1.1/share/make/winshlib.mk" SHLIB="lightgbm.dll" WIN=64 TCLBIN=64 OBJECTS=""' had status 127
ERROR: compilation failed for package 'lightgbm'
* removing 'C:/Program Files/R/R-3.4.1/library/lightgbm'
* restoring previous 'C:/Program Files/R/R-3.4.1/library/lightgbm'

So it seems you didn’t install Rtools correctly.