Update build_trouble_shooting.md (#2430)

I had to fight with my linux box for a day to find the solution to the problem. I hope than this may help other users to save some time.
This commit is contained in:
Alfredo Cambera 2017-06-21 00:36:10 -04:00 committed by Tianqi Chen
parent ee3d680e89
commit 46b9889cc5

View File

@ -41,6 +41,15 @@ Linux platform (also Mac OS X in general)
**Trouble 4**: I tried `python setup.py install` but it says `setuptools` import fail.
**Solution 4**: Please make sure you have [setuptools](https://pypi.python.org/pypi/setuptools) before installing the python package.
**Trouble 5**: I see the same error message in **Trouble 0** when install from `pip install xgboost`.
**Solution 5**: The compilation process uses too many processes to run `make` and the box runs out or RAM. To solve this, there are two alternatives:
* Add more RAM.
* Run `make` with just one process:
```
git clone --recursive https://github.com/dmlc/xgboost
cd xgboost; make -j1
```
Mac OS X (specific)
------------
Most of the troubles and solutions are the same with that in the Linux platform. Mac has the following specific problems.