gho*_*ade 7 openssl github cmake
我提取了Cmake zip 文件(从 github 下载)并尝试安装它但发生了错误。我尝试安装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
---------------------------------------------
Run Code Online (Sandbox Code Playgroud)
Zac*_*yon 15
我今天在尝试在 Ubuntu 18.04 下编译 cmake 3.16-rc4 时遇到了同样的问题。在尝试通过设置适当的路径并首先查找它们来解决此问题时,我发现了这一点:如何在 Ubuntu 上安装 OpenSSL 库?
所以解决方案是简单地做:
sudo apt install libssl-dev
Run Code Online (Sandbox Code Playgroud)
所以cmake显然需要openssl的dev包。荣誉对尼基Yoshiuchi,谁给的链接的问题所需的答案。
| 归档时间: |
|
| 查看次数: |
9474 次 |
| 最近记录: |