当前位置:   article > 正文

CMake提示Could NOT find OpenSSL_cmake could not find openssl, try to set the path

cmake could not find openssl, try to set the path to openssl root folder in

错误显示如下:

-- CMake version: 3.10.2
-- CMake system name: Linux
-- Timestamp is 2023-11-30T02:41:31Z
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  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)
Call Stack (most recent call first):
  /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.10/Modules/FindOpenSSL.cmake:390 (find_package_handle_standard_args)
  src/CMakeLists.txt:194 (find_package)
 

解决办法:

执行以下代码,安装libssl-dev

apt-get install libssl-dev

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号