For bugs or installation issues, please provide the following information.
The more information you provide, the more easily we will be able to offer
help and advice.
Operating System:
MacOS 10.12.6
Compiler:
I used brew install gcc --without-multilib
Successfully install but I got following warning
Warning: gcc: this formula has no --without-multilib option so it will be ignored!
>brew info gcc
gcc: stable 7.2.0 (bottled), HEAD
GNU compiler collection
https://gcc.gnu.org/
/usr/local/Cellar/gcc/7.2.0 (1,487 files, 284MB) *
Package used (python/R/jvm/C++):
2.7.9
xgboost
version used:
0.6a2
If installing from source, please provide
git rev-parse HEAD
)If you are using jvm package, please
If you are using python package, please provide
The python version and distribution
brew, python 2.7.9
The command to install xgboost
if you are not installing from source
pip install xgboost
If you are using R package, please provide
sessionInfo()
xgboost
if you are not installing from sourcebrew install gcc --without-multilib
However I got following warning
Warning: gcc: this formula has no --without-multilib option so it will be ignored!
pip install xgboost
> pip install xgboost
Collecting xgboost
Using cached xgboost-0.6a2.tar.gz
Complete output from command python setup.py egg_info:
rm -f -rf build build_plugin lib bin *~ */*~ */*/*~ */*/*/*~ */*.o */*/*.o */*/*/*.o xgboost
clang-omp++ -std=c++0x -Wall -O3 -msse2 -Wno-unknown-pragmas -funroll-loops -Iinclude -Idmlc-core/include -Irabit/include -fPIC -fopenmp -MM -MT build/learner.o src/learner.cc >build/learner.d
/bin/sh: clang-omp++: command not found
make: *** [build/learner.o] Error 127
make: *** Waiting for unfinished jobs....
clang-omp++ -std=c++0x -Wall -O3 -msse2 -Wno-unknown-pragmas -funroll-loops -Iinclude -Idmlc-core/include -Irabit/include -fPIC -fopenmp -MM -MT build/logging.o src/logging.cc >build/logging.d
/bin/sh: clang-omp++: command not found
make: *** [build/logging.o] Error 127
-----------------------------
Building multi-thread xgboost failed
Start to build single-thread xgboost
rm -f -rf build build_plugin lib bin *~ */*~ */*/*~ */*/*/*~ */*.o */*/*.o */*/*/*.o xgboost
clang-omp++ -std=c++0x -Wall -O3 -msse2 -Wno-unknown-pragmas -funroll-loops -Iinclude -Idmlc-core/include -Irabit/include -fPIC -fopenmp -MM -MT build/learner.o src/learner.cc >build/learner.d
/bin/sh: clang-omp++: command not found
make: *** [build/learner.o] Error 127
make: *** Waiting for unfinished jobs....
clang-omp++ -std=c++0x -Wall -O3 -msse2 -Wno-unknown-pragmas -funroll-loops -Iinclude -Idmlc-core/include -Irabit/include -fPIC -fopenmp -MM -MT build/logging.o src/logging.cc >build/logging.d
/bin/sh: clang-omp++: command not found
make: *** [build/logging.o] Error 127
Successfully build single-thread xgboost
If you want multi-threaded version
See additional instructions in doc/build.md
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/yc/mh8578l534x93z2jp1sw54kr0000gp/T/pip-build-mHYzY6/xgboost/setup.py", line 29, in <module>
LIB_PATH = libpath['find_lib_path']()
File "/private/var/folders/yc/mh8578l534x93z2jp1sw54kr0000gp/T/pip-build-mHYzY6/xgboost/xgboost/libpath.py", line 45, in find_lib_path
'List of candidates:\n' + ('\n'.join(dll_path)))
__builtin__.XGBoostLibraryNotFound: Cannot find XGBoost Libarary in the candicate path, did you install compilers and run build.sh in root path?
List of candidates:
/private/var/folders/yc/mh8578l534x93z2jp1sw54kr0000gp/T/pip-build-mHYzY6/xgboost/xgboost/libxgboost.so
/private/var/folders/yc/mh8578l534x93z2jp1sw54kr0000gp/T/pip-build-mHYzY6/xgboost/xgboost/../../lib/libxgboost.so
/private/var/folders/yc/mh8578l534x93z2jp1sw54kr0000gp/T/pip-build-mHYzY6/xgboost/xgboost/./lib/libxgboost.so
v0.60
and got same errorI was able to make it work with gcc5 but not with 6 or 7
brew install gcc@5
env CC=gcc CXX=gcc pip install xgboost
Most helpful comment
I was able to make it work with gcc5 but not with 6 or 7