From 8153ba6fe77381595af0286a8989e36f35cd5034 Mon Sep 17 00:00:00 2001 From: tomisuker Date: Tue, 20 Feb 2018 05:20:00 +0900 Subject: [PATCH] modify build guide from source on macOS (#2993) * modify build guide from source on macOS * fix; installation for macOS --- doc/build.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/doc/build.md b/doc/build.md index 799d49df3..c610aa116 100644 --- a/doc/build.md +++ b/doc/build.md @@ -85,12 +85,33 @@ Now, clone the repository ```bash git clone --recursive https://github.com/dmlc/xgboost +cd xgboost; cp make/config.mk ./config.mk +``` + +Open config.mk and uncomment these two lines + +```config.mk +export CC = gcc +export CXX = g++ +``` + +and replace these two lines into(5 or 6 or 7; depending on your gcc-version) + +```config.mk +export CC = gcc-7 +export CXX = g++-7 +``` + +To find your gcc version + +```bash +gcc-version ``` and build using the following commands ```bash -cd xgboost; cp make/config.mk ./config.mk; make -j4 +make -j4 ``` head over to `Python Package Installation` for the next steps