CentOS7编译cmake报错

在CentOS7.x准备编译cmake的时候,configure报错

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有安装,这时候只需要再安装一次openssl的编译依赖

yum -y install openssl-devel

再执行configure就不报错了。注意环境是:CentOS7.x

原文地址:https://www.cnblogs.com/cash/p/14125220.html