我按照安装指南找到https://github.com/Microsoft/LightGBM/wiki/Installation-Guide来安装LightGBM。在MinGW shell中,我可以下载git repo,然后cd进入build目录。当我试试下面的命令:LightGBM安装问题 - Python
cmake -G "MinGW Makefiles" ..
我得到以下错误:
CMake Error at C:/Program Files/CMake/share/cmake-
3.9/Modules/CMakeMinGWFindMake.cmake:12 (message):
sh.exe was found in your PATH, here:
C:/Program Files/Git/usr/bin/sh.exe
For MinGW make to work correctly sh.exe must NOT be in your path.
Run cmake from a shell that does not have sh.exe in your PATH.
If you want to use a UNIX shell, then use MSYS Makefiles.
Call Stack (most recent call first):
CMakeLists.txt:8 (PROJECT)
CMake Error: CMake was unable to find a build program corresponding to
"MinGW Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to
select a different build tool.
CMake Error: CMake was unable to find a build program corresponding to "
MinGW Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to
select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
我也tryed从我的路径移除sh.exe。
任何人都可以指出我可能的解决方案吗?我猜测我安装cmake不正确?
我的猜测是它无法找到的GNU make'。你有完整的MinGW还是只有Git的一个? – yorodm
认为我有一个与Git来...发现这里:https://git-scm.com/downloads –
在他们的[安装指南](https://github.com/Microsoft/LightGBM/wiki/Installation - 指南)他们要求MinGW64,尝试安装它并使用该环境编译 – yorodm