0
私のMac(10.12.5)にxgboostをインストールしようとしていますが、いくつか試行しても成功しませんでした。私はgcc-6を追加してgcc変数を変更しようとしている別のtutoに従っていますが、同じ問題があります。MacでのXgboostインストール
だから私がやったこと:
- gitのクローン--recursive https://github.com/dmlc/xgboost
- のCD xgboost。 cp make/minimum.mk ./config.mk;
/usr/local/bin/g++ -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/learner.o src/learner.cc >build/learner.d /usr/local/bin/g++ -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/logging.o src/logging.cc >build/logging.d /usr/local/bin/g++ -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/c_api/c_api.o src/c_api/c_api.cc >build/c_api/c_api.d /usr/local/bin/g++ -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/c_api/c_api_error.o src/c_api/c_api_error.cc >build/c_api/c_api_error.d /bin/sh: /usr/local/bin/g++: No such file or directory /bin/sh: /usr/local/bin/g++: No such file or directory make: *** [build/learner.o] Error 127 make: *** Waiting for unfinished jobs.... /bin/sh: /usr/local/bin/g++: No such file or directory make: *** [build/logging.o] Error 127 make: *** [build/c_api/c_api.o] Error 127 /bin/sh: /usr/local/bin/g++: No such file or directory make: *** [build/c_api/c_api_error.o] Error 127
私のgccのバージョンは次のとおりです:-j4
私は次のようなエラーがあることを確認してください
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
を私は本当にあなたの助けを必要としています。現時点では私はpip install xgboost
を使ってライブラリを使用していますが、このライブラリを使うのは正しい方法ではないことが分かります。 はあなたの助け
psのありがとう:私の英語がOKでない場合は申し訳ありませんが、私はそれが環境をカプセル化するため、ドッカー画像を使用して