mac lightgbm 安装

35 篇文章 0 订阅

1 一些连接

https://www.jianshu.com/p/f825f4343f10
https://blog.csdn.net/moonflyerj/article/details/79085042

2 报错

CMake Error at /usr/local/Cellar/cmake/3.11.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.11.4/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  /usr/local/Cellar/cmake/3.11.4/share/cmake/Modules/FindOpenMP.cmake:442 (find_package_handle_standard_args)
  CMakeLists.txt:67 (find_package)


-- Configuring incomplete, errors occurred!
See also "/Users/hx133330/tools/LightGBM/build/CMakeFiles/CMakeOutput.log".

3解决办法

cmake -D CMAKE_C_COMPILER=/opt/local/bin/gcc-mp-4.7 -D CMAKE_CXX_COMPILER=/opt/local/bin/g++-mp-4.7 ..

CMake Error at /usr/local/Cellar/cmake/3.11.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.11.4/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  /usr/local/Cellar/cmake/3.11.4/share/cmake/Modules/FindOpenMP.cmake:442 (find_package_handle_standard_args)
  CMakeLists.txt:67 (find_package)


-- Configuring incomplete, errors occurred!
See also "/Users/hx133330/tools/LightGBM/build/CMakeFiles/CMakeOutput.log".
You have changed variables that require your cache to be deleted.
Configure will be re-run and you may have to reset some variables.
The following variables have changed:
CMAKE_C_COMPILER= /opt/local/bin/gcc-mp-4.7
CMAKE_CXX_COMPILER= /opt/local/bin/g++-mp-4.7

-- Generating done
-- Build files have been written to: 
/Users/name/tools/LightGBM/build
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值