linux之解决 Could NOT find OpenSSL

在编译过程中出现如下错误:

Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES OPENSSL_INCLUDE_DIR) 

原因:

        缺少openssl 依赖

解决方法:

sudo apt-get install libssl-dev

你可能感兴趣的:(linux,linux)