官方文档:https://xgboost.readthedocs.io/en/latest/build.html
中文博客:http://www.jianshu.com/p/76ff402a8b58
brew install gcc --without-multilib #安装gcc
git clone --recursive https://github.com/dmlc/xgboost #下载xgboost
cd xgboost;
cp make/config.mk ./config.mk;
vi config.mk; #关键步骤,把默认gcc改成高版本
make clean;
make -j4;
cd python-package; sudo python3 setup.py install