我正在尝试按照以下说明为Python 构建XGBoost包:
以下是使用支持OpenMP的编译器安装XGBoost的完整解决方案.通过openmp支持获得gcc-5.xx
brew install gcc --without-multilib
.(brew是OS X上apt-get的事实标准.因此不建议单独安装HPC,但它应该可以工作.):
git clone --recursive https://github.com/dmlc/xgboost
cd xgboost; cp make/config.mk ./config.mk; make -j4
Run Code Online (Sandbox Code Playgroud)
此错误恰好在make -j4
命令中发生.
在beforenad之前搜索,我尝试了这两个解决方案(1和2),但没有用,除了因为害怕搞乱一切而安装另一个gcc的部分.
以下是make
配置文件.它没有任何可疑之处.
#-----------------------------------------------------
# xgboost: the configuration compile script
#
# If you want to change the configuration, please use the following
# steps. Assume you are on the root directory of xgboost.
# First copy the this file so that any local changes will be …
Run Code Online (Sandbox Code Playgroud)