Skip to content

Instantly share code, notes, and snippets.

@quocnb
Last active January 29, 2018 06:05
Show Gist options
  • Save quocnb/f809fe6dff293d3d6414963622ae8329 to your computer and use it in GitHub Desktop.
Save quocnb/f809fe6dff293d3d6414963622ae8329 to your computer and use it in GitHub Desktop.

1. Error

1. XGBoost Install Error

https://stackoverflow.com/a/43101972/2776008
brew install gcc --without-multilib
git clone --recursive https://github.com/dmlc/xgboost
cd xgboost; cp make/config.mk ./config.mk
vi config.mk

Uncomment the lines near the top of the file:

export CC = gcc
export CXX = g++

Change them to the following:

export CC = gcc-7
export CXX = g++-7
make clean_all && make -j4
cd python-package; python setup.py install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment