gpt4 book ai didi

github - 找不到 OpenSSL,尝试设置 OpenSSL 根文件夹的路径

转载 作者:行者123 更新时间:2023-12-04 11:18:39 27 4
gpt4 key购买 nike

我提取了 Cmake zip 文件(从 gi​​thub 下载)并尝试安装它但发生错误。
我尝试安装 OpenSSL 并尝试安装 Cmake 但错误(相同)仍在出现

终端输出如下:

CMake 3.16.20191118, Copyright 2000-2019 Kitware, Inc. and Contributors
Found GNU toolchain
C compiler on this system is: gcc
C++ compiler on this system is: g++
Makefile processor on this system is: make
g++ has setenv
g++ has unsetenv
g++ does not have environ in stdlib.h
g++ has stl wstring
g++ has <ext/stdio_filebuf.h>
---------------------------------------------
make: 'cmake' is up to date.
loading initial cache file /root/Cmake/Bootstrap.cmk/InitialCacheFlags.cmake
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR)
-- Configuring incomplete, errors occurred!
See also "/root/Cmake/CMakeFiles/CMakeOutput.log".
See also "/root/Cmake/CMakeFiles/CMakeError.log".
---------------------------------------------
Error when bootstrapping CMake:
Problem while running initial CMake
---------------------------------------------

最佳答案

我今天在尝试在 Ubuntu 18.04 下编译 cmake 3.16-rc4 时遇到了同样的问题。在尝试通过设置适当的路径并首先查找它们来解决此问题时,我发现了这一点:How do I install the OpenSSL libraries on Ubuntu?

所以解决方案是简单地做:

sudo apt install libssl-dev

所以cmake显然需要openssl的dev包。感谢 Niki Yoshiuchi ,谁在链接的问题中给出了所需的答案。

关于github - 找不到 OpenSSL,尝试设置 OpenSSL 根文件夹的路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58913364/

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