gpt4 book ai didi

Installing xgboost on Arch Linux through cmake(通过cmake在Arch Linux上安装xgBoost)

转载 作者:bug小助手 更新时间:2023-10-24 18:10:40 36 4
gpt4 key购买 nike



I am trying to install xgboost through the git repositorty, using the following commands

我正在尝试通过git存储库安装xgBoost,使用以下命令


cd xgboost
mkdir build
cd build
cmake ..

When I run the last command cmake.. I get the following error message

当我运行最后一个命令cmake时..我收到以下错误消息


-- CMake version 3.25.0
-- xgboost VERSION: 2.1.0
CMake Error at CMakeLists.txt:227 (add_subdirectory):
The source directory

/mnt/32F6E6CAF6E68D83/Downloads/xgboost/dmlc-core

does not contain a CMakeLists.txt file.


CMake Error at cmake/Utils.cmake:198 (set_target_properties):
set_target_properties Can not find target to add properties to: dmlc
Call Stack (most recent call first):
CMakeLists.txt:307 (xgboost_target_properties)


CMake Error at cmake/Utils.cmake:270 (target_link_libraries):
Cannot specify link libraries for target "dmlc" which is not built by this
project.
Call Stack (most recent call first):
CMakeLists.txt:308 (xgboost_target_link_libraries)


-- Configuring incomplete, errors occurred!
See also "/mnt/32F6E6CAF6E68D83/Downloads/xgboost/CMakeFiles/CMakeOutput.log".

更多回答
优秀答案推荐

If you downloaded the tarball from the website it doesn't contain the git submodules (e.g. dmlc-core; see https://github.com/dmlc/xgboost/issues/3594 for further discussion).

如果您从网站下载了tarball,则它不包含Git子模块(例如,dmlc-core;有关进一步的讨论,请参阅https://github.com/dmlc/xgboost/issues/3594)。


Do you get the same error if you use these steps?

如果您使用这些步骤,是否会得到相同的错误?


git clone --recursive https://github.com/dmlc/xgboost
git submodule init
git submodule update

cd xgboost
mkdir build
cd build
cmake ..
make -j$(nproc)

更多回答

36 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com