gpt4 book ai didi

curl - CMAKE_USE_SYSTEM_CURL 已打开但未找到 curl

转载 作者:行者123 更新时间:2023-12-05 08:40:10 25 4
gpt4 key购买 nike

我正在尝试使用 system-curl 安装 cmake,使用 ./bootstrap --system-curl,如 here 所示.这样做,我得到了:

    -- Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) 
CMake Error at CMakeLists.txt:413 (message):
CMAKE_USE_SYSTEM_CURL is ON but a curl is not found!
Call Stack (most recent call first):
CMakeLists.txt:682 (CMAKE_BUILD_UTILITIES)


-- Configuring incomplete, errors occurred!
See also "/root/temp/cmake-3.14.5/CMakeFiles/CMakeOutput.log".
See also "/root/temp/cmake-3.14.5/CMakeFiles/CMakeError.log".
---------------------------------------------
Error when bootstrapping CMake:
Problem while running initial CMake

最佳答案

对我来说,运行 ./bootstrap --no-system-curl 导致在 open-cv 上运行 cmake 时出错,因为找不到 https 协议(protocol)。所以我需要让 ./bootstrap --system-curl 运行。

解决方案是安装 curl 开发依赖项。 cmake 需要这些,而不仅仅是 curl。

我跑了:

sudo apt-get install curl
sudo apt-get install libssl-dev libcurl4-openssl-dev

关于curl - CMAKE_USE_SYSTEM_CURL 已打开但未找到 curl ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56941778/

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