测试环境:
centos7.9
cmake==3.25.0
./bootstrap以后报错如下:
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)
CMake Error at Utilities/cmcurl/CMakeLists.txt:485 (message):
Could not find OpenSSL. Install an OpenSSL development package or
configure CMake with -DCMAKE_USE_OPENSSL=OFF to build without OpenSSL.
解决方法:文章来源:https://www.toymoban.com/news/detail-781893.html
sudo yum install -y openssl openssl-devel 即可解决问题文章来源地址https://www.toymoban.com/news/detail-781893.html
到了这里,关于[centos]centos7源码编译cmake报错Could NOT find OpenSSL的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!