build.sh hints for errors related to: Cannot find XGBoost Library in the candidate path, did you install compilers and run build.sh in root path? (#2229)
* provide hints on how to build this on linux if a new user just clones the repository and is looking for help. * add the recursive command example
This commit is contained in:
parent
0ad20f8fe0
commit
bb097166b5
30
build.sh
30
build.sh
@ -10,6 +10,36 @@ set -e
|
|||||||
if make; then
|
if make; then
|
||||||
echo "Successfully build multi-thread xgboost"
|
echo "Successfully build multi-thread xgboost"
|
||||||
else
|
else
|
||||||
|
|
||||||
|
not_ready=0
|
||||||
|
|
||||||
|
if [[ ! -e ./rabit/Makefile ]]; then
|
||||||
|
echo ""
|
||||||
|
echo "Please clone the rabit repository into this directory."
|
||||||
|
echo "Here are the commands:"
|
||||||
|
echo "rm -rf rabit"
|
||||||
|
echo "git clone https://github.com/dmlc/rabit.git rabit"
|
||||||
|
not_ready=1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ ! -e ./dmlc-core/Makefile ]]; then
|
||||||
|
echo ""
|
||||||
|
echo "Please clone the dmlc-core repository into this directory."
|
||||||
|
echo "Here are the commands:"
|
||||||
|
echo "rm -rf dmlc-core"
|
||||||
|
echo "git clone https://github.com/dmlc/dmlc-core.git dmlc-core"
|
||||||
|
not_ready=1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ "${not_ready}" == "1" ]]; then
|
||||||
|
echo ""
|
||||||
|
echo "Please fix the errors above and retry the build or reclone the repository with:"
|
||||||
|
echo "git clone --recursive https://github.com/dmlc/xgboost.git"
|
||||||
|
echo ""
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
echo "-----------------------------"
|
echo "-----------------------------"
|
||||||
echo "Building multi-thread xgboost failed"
|
echo "Building multi-thread xgboost failed"
|
||||||
echo "Start to build single-thread xgboost"
|
echo "Start to build single-thread xgboost"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user