To the following: export CC = $(if $(shell which clang), clang, gcc-6)Įxport CXX = $(if $(shell which clang++), clang++, g++-6) Save the file.Īlso, make changes to the file xgboost/Makefile change lines: export CC = $(if $(shell which clang), clang, gcc)Įxport CXX = $(if $(shell which clang++), clang++, g++) It did not for me I needed to add the -6 to both lines. It is possible that simply uncommenting the lines solves the problem. Uncomment the lines near the top of the file:Ĭhange them to the following: export CC = gcc-6 Now, use your favorite editor (I used vi), and go into the file that you copied from /make to /xgboost vi config.mk The problem is that some key lines in the make files are commented out and also not fully specified. The next series of steps differ from the documentation on the xgboost site, and I cobbled it together from lots of sources and also experimenting. I downloaded it to Anaconda/pkgs directory. You might get some warnings to unlink directories or delete them if you have other versions installed follow the warnings/instructions. It took me a while to work through the various issues, but it is now running nicely in my Anaconda (P圓6) environment.įor multi-threading you need to do the following first (install homebrew if you have not done so): brew install gcc -without-multilib For the record, I am using a Mac with OS X 10.10 (Yosemite). It's a little more complicated if you want to use multi-threading.
0 Comments
Leave a Reply. |