我可以通过 Windows 提示从源代码安装 lightgbm
A:\LightGBM>Rscript build_r.R
当我尝试使用 GPU 支持进行构建时,出现此错误:
CMake Error at A:/programas/CMake/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:218 (message):
-- Configuring incomplete, errors occurred!
Could NOT find Boost (missing: Boost_INCLUDE_DIR filesystem system)
(Required is at least version "1.56.0")
然后我尝试在 https://github.com/microsoft/LightGBM/tree/master/R-package 之后包含 boost 目录。我得到:
A:\LightGBM>Rscript build_r.R --use-gpu --boost-include-dir="/programas/boost_1_75_0/"
...
...
installing via 'install.libs.R' to A:/RLibrary/00LOCK-lightgbm/00new/lightgbm
Error in eval(ei, envir) : objeto 'programas' não encontrado
我试过有/没有"/\
。
怎么做? tks
答案 0 :(得分:1)
--boost-include-dir
的参数需要是绝对路径,如下所示:
Rscript build_r.R --use-gpu --boost-include-dir="A:/programas/boost_1_75_0/"