user9371612
user9371612

Reputation: 100

LightGBM Installation issue on cmake

I would like to download LightGbm and i followed this website for doing it. But suddenly stopped with an error. Please post a solution.

Thankshttps://lightgbm.readthedocs.io/en/latest/Installation-Guide.html#macos

Error:

cmake ..
CMake Error at /usr/local/Cellar/cmake/3.13.0/share/cmake/Modules/CMakeDetermineCCompiler.cmake:48 (message):
  Could not find compiler set in environment variable CC:

  gcc-7.
Call Stack (most recent call first):
  CMakeLists.txt:7 (PROJECT)


CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "/Users/kj/LightGBM/build/CMakeFiles/CMakeOutput.log".

Upvotes: 0

Views: 726

Answers (1)

Aurélien Foucault
Aurélien Foucault

Reputation: 559

Your environment variable CC is set to gcc-7 but this compiler can't be access with your $PATH variable.

Try to write gcc-7 in a terminal you should get a Command not found error.

Upvotes: 1

Related Questions