modify build guide from source on macOS (#2993)
* modify build guide from source on macOS * fix; installation for macOS
This commit is contained in:
parent
dd82b28e20
commit
8153ba6fe7
23
doc/build.md
23
doc/build.md
@ -85,12 +85,33 @@ Now, clone the repository
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone --recursive https://github.com/dmlc/xgboost
|
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
|
and build using the following commands
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd xgboost; cp make/config.mk ./config.mk; make -j4
|
make -j4
|
||||||
```
|
```
|
||||||
head over to `Python Package Installation` for the next steps
|
head over to `Python Package Installation` for the next steps
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user