使用64位mingw g++构建xgboost时失败
Fail when building xgboost using 64-bit mingw g++
我想在64位Windows 10中为Anaconda Python 3.x编译xgboost,所以我遵循了以下步骤-https://xgboost.readthedocs.org/en/latest/build.html#building-在windows和这里-在python下安装xgboost,64位msys失败。使用64位的mingw g++,当使用mingw64.mk"make-j4"时,我得到了以下错误消息:
g++: error: dmlc-core/libdmlc.a: No such file or directory
g++: error: rabit/lib/librabit_empty.a: No such file or directory
Makefile:120: recipe for target 'lib/libxgboost.dll' failed
mingw32-make: *** [lib/libxgboost.dll] Error 1
你能告诉我发生了什么以及我如何解决这个问题吗?
非常感谢。
您必须首先转到dmlc核心和rabit子目录,并在那里执行make。然后进入xgboost库并执行build.sh.
也许您在运行安装时不在正确的文件夹中。请尝试以下操作。
调出Anaconda提示符,运行:
cd xgboostpython-package
python setup.py install
如果仍然失败,请从头开始尝试这个链接中的过程,它应该可以工作。链接中的报价:
首先按照官方指南进行以下程序(在Git中Windows上的Bash):
git clone --recursive https://github.com/dmlc/xgboost
git submodule init
git submodule update
然后在这里安装TDM-GCC,并在Git Bash中执行以下操作:
alias make='mingw32-make'
cp make/mingw64.mk config.mk; make -j4
最后,使用anaconda提示符或Git Bash执行以下操作:
cd xgboostpython-package
python setup.py install
目录中缺少这些库。您必须递归地克隆xgboost才能包含它们。只需按照安装指南中提到的克隆过程进行即可!
相关文章:
- 如果没有malloc,链表实现将失败
- 模板参数替换失败,并且未完成隐式转换
- 具有默认模板参数的多态类的模板推导失败
- 视图中的参数推导失败:take_while
- 链接到自行创建的dll失败
- 带有特殊路径部分的"std::filesystem::weakly_canonical"失败
- GetShortPathName在网络驱动器上使用中文文件夹时失败
- gcc和c++17的过载解析失败
- 为什么使用 P/Invoke 调用 dll 时,某些计算机中的 LoadLibrary 失败?
- 在WSL:configure_file上对config_file的每次调用都失败:配置文件时出现问题
- 使用 GCC 卸载的 OpenMP 卸载失败,并出现"Ptx assembly aborted due to errors"
- 使用cmake从源代码构建MySQL连接器/C++失败(与以前的声明冲突)
- 链接阶段在Ubuntu上失败,但在MacOS上失败
- 从父数组测试用例构造二叉树失败
- LibGit2 SSH身份验证失败
- 如何让LLDB在成功时退出,在失败时等待
- VS2017,C++包含目录与附加包含目录,子文件夹包含失败-但为什么
- 生成MRPT库时cmake配置失败
- 为什么除非添加括号,否则构造函数上的模板替换会失败?
- 使用64位mingw g++构建xgboost时失败