antmachineintelligence / mtgbmcode

mtgbmcode
MIT License
166 stars 42 forks source link

install errors for mac os #4

Closed ZixuanGuo closed 2 years ago

ZixuanGuo commented 2 years ago

-- The C compiler identification is AppleClang 9.1.0.9020039 -- The CXX compiler identification is AppleClang 9.1.0.9020039 -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Error at /usr/local/Cellar/cmake/3.15.4/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message): Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES) Call Stack (most recent call first): /usr/local/Cellar/cmake/3.15.4/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE) /usr/local/Cellar/cmake/3.15.4/share/cmake/Modules/FindOpenMP.cmake:477 (find_package_handle_standard_args) CMakeLists.txt:81 (find_package)

-- Configuring incomplete, errors occurred! See also "/Users/caoguo/Downloads/mtgbmcode-1-main/python-package/build_cpp/CMakeFiles/CMakeOutput.log". make: *** No rule to make target `_lightgbm'. Stop. -- The C compiler identification is AppleClang 9.1.0.9020039 -- The CXX compiler identification is AppleClang 9.1.0.9020039 -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found OpenMP_C: -Xpreprocessor -fopenmp -I/usr/local/opt/libomp/include
-- Found OpenMP_CXX: -Xpreprocessor -fopenmp -I/usr/local/opt/libomp/include
-- Found OpenMP: TRUE
-- Configuring done -- Generating done -- Build files have been written to: /Users/caoguo/Downloads/mtgbmcode-1-main/python-package/build_cpp Scanning dependencies of target _lightgbm [ 3%] Building CXX object CMakeFiles/_lightgbm.dir/src/c_api.cpp.o [ 6%] Building CXX object CMakeFiles/_lightgbm.dir/src/lightgbm_R.cpp.o [ 9%] Building CXX object CMakeFiles/_lightgbm.dir/src/application/application.cpp.o [ 12%] Building CXX object CMakeFiles/_lightgbm.dir/src/boosting/boosting.cpp.o In file included from In file included from /Users/caoguo/Downloads/mtgbmcode-1-main/python-package/compile/src/boosting/boosting.cpp:5: In file included from /Users/caoguo/Downloads/mtgbmcode-1-main/python-package/compile/include/LightGBM/boosting.h:/Users/caoguo/Downloads/mtgbmcode-1-main/python-package/compile/src/c_api.cpp:7: In file included from /Users/caoguo/Downloads/mtgbmcode-1-main/python-package/compile/include/LightGBM/boosting.h:8: In file included from /Users/caoguo/Downloads/mtgbmcode-1-main/python-package/compile/include/LightGBM/config.h:13: In file included from /Users/caoguo/Downloads/mtgbmcode-1-main/python-package/compile/include/LightGBM/utils/common.h:9: /Users/caoguo/Downloads/mtgbmcode-1-main/python-package/compile/include/LightGBM/utils/openmp_wrapper.h:89:10: fatal error: 'omp.h' file not found : In file included from /Users/caoguo/Downloads/mtgbmcode-1-main/python-package/compile/include/LightGBM/config.h:#include ^~~13: In file included from /Users/caoguo/Downloads/mtgbmcode-1-main/python-package/compile/include/LightGBM/utils/common.h:9: /Users/caoguo/Downloads/mtgbmcode-1-main/python-package/compile/include/LightGBM/utils/openmp_wrapper.h:9:10: fatal error: 'omp.h' file not found

include

     ^~~~~~~

In file included from /Users/caoguo/Downloads/mtgbmcode-1-main/python-package/compile/src/application/application.cpp:5: In file included from /Users/caoguo/Downloads/mtgbmcode-1-main/python-package/compile/include/LightGBM/application.h:8: In file included from /Users/caoguo/Downloads/mtgbmcode-1-main/python-package/compile/include/LightGBM/config.h:13: In file included from /Users/caoguo/Downloads/mtgbmcode-1-main/python-package/compile/include/LightGBM/utils/common.h:9: /Users/caoguo/Downloads/mtgbmcode-1-main/python-package/compile/include/LightGBM/utils/openmp_wrapper.h:9:10: fatal error: 'omp.h' file not found

include

     ^~~~~~~

In file included from /Users/caoguo/Downloads/mtgbmcode-1-main/python-package/compile/src/lightgbm_R.cpp:7: In file included from /Users/caoguo/Downloads/mtgbmcode-1-main/python-package/compile/include/LightGBM/utils/common.h:9: /Users/caoguo/Downloads/mtgbmcode-1-main/python-package/compile/include/LightGBM/utils/openmp_wrapper.h:9:10: fatal error: 'omp.h' file not found

include

     ^~~~~~~

1 error generated. make[3]: [CMakeFiles/_lightgbm.dir/src/lightgbm_R.cpp.o] Error 1 make[3]: Waiting for unfinished jobs.... 1 error generated. make[3]: [CMakeFiles/_lightgbm.dir/src/application/application.cpp.o] Error 1 1 error generated. make[3]: [CMakeFiles/_lightgbm.dir/src/c_api.cpp.o] Error 1 1 error generated. make[3]: [CMakeFiles/_lightgbm.dir/src/boosting/boosting.cpp.o] Error 1 make[2]: [CMakeFiles/_lightgbm.dir/all] Error 2 make[1]: [CMakeFiles/_lightgbm.dir/rule] Error 2 make: [_lightgbm] Error 2 -- The C compiler identification is AppleClang 9.1.0.9020039 -- The CXX compiler identification is AppleClang 9.1.0.9020039 -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found OpenMP_C: -Xpreprocessor -fopenmp -I/opt/local/include/libomp
-- Found OpenMP_CXX: -Xpreprocessor -fopenmp -I/opt/local/include/libomp
-- Found OpenMP: TRUE
-- Configuring done -- Generating done -- Build files have been written to: /Users/caoguo/Downloads/mtgbmcode-1-main/python-package/build_cpp Scanning dependencies of target _lightgbm [ 6%] Building CXX object CMakeFiles/_lightgbm.dir/src/c_api.cpp.o [ 6%] Building CXX object CMakeFiles/_lightgbm.dir/src/lightgbm_R.cpp.o [ 9%] Building CXX object CMakeFiles/_lightgbm.dir/src/application/application.cpp.o [ 12%] Building CXX object CMakeFiles/_lightgbm.dir/src/boosting/boosting.cpp.o In file included from /Users/caoguo/Downloads/mtgbmcode-1-main/python-package/compile/src/lightgbm_R.cpp:7: In file included from /Users/caoguo/Downloads/mtgbmcode-1-main/python-package/compile/include/LightGBM/utils/common.h:9: /Users/caoguo/Downloads/mtgbmcode-1-main/python-package/compile/include/LightGBM/utils/openmp_wrapper.h:9:10: fatal error: 'omp.h' file not found

include

     ^~~~~~~

In file included from /Users/caoguo/Downloads/mtgbmcode-1-main/python-package/compile/src/boosting/boosting.cpp:5: In file included from /Users/caoguo/Downloads/mtgbmcode-1-main/python-package/compile/include/LightGBM/boosting.h:8: In file included from /Users/caoguo/Downloads/mtgbmcode-1-main/python-package/compile/include/LightGBM/config.h:13: In file included from /Users/caoguo/Downloads/mtgbmcode-1-main/python-package/compile/include/LightGBM/utils/common.h:9: /Users/caoguo/Downloads/mtgbmcode-1-main/python-package/compile/include/LightGBM/utils/openmp_wrapper.h:9:10: fatal error: 'omp.h' file not found

include

     ^~~~~~~

1 error generated. make[3]: [CMakeFiles/_lightgbm.dir/src/lightgbm_R.cpp.o] Error 1 make[3]: Waiting for unfinished jobs.... 1 error generated. make[3]: *** [CMakeFiles/_lightgbm.dir/src/boosting/boosting.cpp.o] Error 1 In file included from /Users/caoguo/Downloads/mtgbmcode-1-main/python-package/compile/src/c_api.cpp:7: In file included from /Users/caoguo/Downloads/mtgbmcode-1-main/python-package/compile/include/LightGBM/boosting.h:8: In file included from /Users/caoguo/Downloads/mtgbmcode-1-main/python-package/compile/include/LightGBM/config.h:13: In file included from /Users/caoguo/Downloads/mtgbmcode-1-main/python-package/compile/include/LightGBM/utils/common.h:9: /Users/caoguo/Downloads/mtgbmcode-1-main/python-package/compile/include/LightGBM/utils/openmp_wrapper.h:9:10: fatal error: 'omp.h' file not found

include

     ^~~~~~~

In file included from /Users/caoguo/Downloads/mtgbmcode-1-main/python-package/compile/src/application/application.cpp:5: In file included from /Users/caoguo/Downloads/mtgbmcode-1-main/python-package/compile/include/LightGBM/application.h:8: In file included from /Users/caoguo/Downloads/mtgbmcode-1-main/python-package/compile/include/LightGBM/config.h:13: In file included from /Users/caoguo/Downloads/mtgbmcode-1-main/python-package/compile/include/LightGBM/utils/common.h:9: /Users/caoguo/Downloads/mtgbmcode-1-main/python-package/compile/include/LightGBM/utils/openmp_wrapper.h:9:10: fatal error: 'omp.h' file not found

include

     ^~~~~~~

1 error generated. make[3]: [CMakeFiles/_lightgbm.dir/src/application/application.cpp.o] Error 1 1 error generated. make[3]: [CMakeFiles/_lightgbm.dir/src/c_api.cpp.o] Error 1 make[2]: [CMakeFiles/_lightgbm.dir/all] Error 2 make[1]: [CMakeFiles/_lightgbm.dir/rule] Error 2 make: *** [_lightgbm] Error 2 -- The C compiler identification is AppleClang 9.1.0.9020039 -- The CXX compiler identification is AppleClang 9.1.0.9020039 -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Error at CMakeLists.txt:63 (cmake_minimum_required): CMake 3.16 or higher is required. You are running version 3.15.4

-- Configuring incomplete, errors occurred! See also "/private/var/folders/2d/blsgmf_500x4b6ymg3b8gnrh0000gn/T/pip-install-jh4_ut7g/lightgbm/build_cpp/CMakeFiles/CMakeOutput.log". -- The C compiler identification is AppleClang 9.1.0.9020039 -- The CXX compiler identification is AppleClang 9.1.0.9020039 -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Error at CMakeLists.txt:63 (cmake_minimum_required): CMake 3.16 or higher is required. You are running version 3.15.4

-- Configuring incomplete, errors occurred! See also "/private/var/folders/2d/blsgmf_500x4b6ymg3b8gnrh0000gn/T/pip-install-jh4_ut7g/lightgbm/build_cpp/CMakeFiles/CMakeOutput.log". -- The C compiler identification is AppleClang 9.1.0.9020039 -- The CXX compiler identification is AppleClang 9.1.0.9020039 -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Error at CMakeLists.txt:63 (cmake_minimum_required): CMake 3.16 or higher is required. You are running version 3.15.4

-- Configuring incomplete, errors occurred! See also "/private/var/folders/2d/blsgmf_500x4b6ymg3b8gnrh0000gn/T/pip-install-0qzmrjb0/lightgbm/build_cpp/CMakeFiles/CMakeOutput.log". -- The C compiler identification is AppleClang 9.1.0.9020039 -- The CXX compiler identification is AppleClang 9.1.0.9020039 -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Error at CMakeLists.txt:63 (cmake_minimum_required): CMake 3.16 or higher is required. You are running version 3.15.4

-- Configuring incomplete, errors occurred! See also "/private/var/folders/2d/blsgmf_500x4b6ymg3b8gnrh0000gn/T/pip-install-0qzmrjb0/lightgbm/build_cpp/CMakeFiles/CMakeOutput.log".