mac安装xgboost
官网安装说明地址: http://xgboost.readthedocs.io/en/latest/build.html#building-on-osx 单线程版: 第一步:clone代码: git clone --recursive https://github.com/dmlc/xgboost 第二步: cd xgboost ; cp make/minimum.mk ./config.mk ; make -j4 多线程版: 第一步:clone代码: git clone --recursive https://github.com/dmlc/xgboost 第二步:安装最新版gcc:最好用的homebrew brew install gcc 第三步: cp make/config.mk ./config.mk 第四步: vim config.mk修改成如下配置 # choice of compiler, by default use system preference. export CC = gcc-6 export CXX = g++-6 # export MPICXX = mpicxx 第五步: 按照官网的 make -j4 来编译,未成功,改用下面这种方法来编译: ./build.sh 出现如下提示表示安装成功 Successfully build single