missing: OPENSSL_CRYPTO_LIBRARY

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) (Required is at least version "1.1.0")

apt-get install libssl-dev

root@cloud:~/ jan/build# cmake .. -DENABLE_MYSQL=OFF -DFORCE_TCP_FASTOPEN=ON -DSYSTEMD_SERVICE=AUTO -DENABLE_SSL_KEYLOG=OFF
-- Found Boost 1.70.0 at /usr/local/lib/cmake/Boost-1.70.0
--   Requested configuration: QUIET REQUIRED COMPONENTS system;program_options
-- Found boost_headers 1.70.0 at /usr/local/lib/cmake/boost_headers-1.70.0
-- Found boost_system 1.70.0 at /usr/local/lib/cmake/boost_system-1.70.0
--   libboost_system.a
-- Adding boost_system dependencies: headers
-- Found boost_program_options 1.70.0 at /usr/local/lib/cmake/boost_program_options-1.70.0
--   libboost_program_options.a
-- Adding boost_program_options dependencies: headers
-- Boost 1.66.0 found.
-- Found Boost components:
   system;program_options
-- Found OpenSSL: /usr/lib/aarch64-linux-gnu/libcrypto.so (found suitable version "1.1.1", minimum required is "1.1.0") 
-- Configuring done
-- Generating done
-- Build files have been written to: /root/ jan/build
原文地址:https://www.cnblogs.com/dream397/p/14207362.html