[centos]centos7源码编译cmake报错Could NOT find OpenSSL

测试环境:

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.

解决方法:

sudo yum install  -y openssl  openssl-devel 即可解决问题

猜你喜欢

转载自blog.csdn.net/FL1623863129/article/details/133144853