RabbitMQ第二课 Could NOT find OpenSSL
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了RabbitMQ第二课 Could NOT find OpenSSL相关的知识,希望对你有一定的参考价值。
场景
CMake配置RabbitMQ编译环境,可以取消ENABLE_SSL_SUPPORT。启用ENABLE_SSL_SUPPORT,需要引入openSSL库
否则配置出错
Call Stack (most recent call first):
CMakeLists.txt:122 (find_package)
CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
system variable OPENSSL_ROOT_DIR: Found unsuitable version ".0.0`", but
required is at least "0.9.8" (found
SSL_EAY_LIBRARY-NOTFOUND;LIB_EAY_LIBRARY-NOTFOUND)
Call Stack (most recent call first):
C:/Program Files (x86)/CMake/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:372 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files (x86)/CMake/share/cmake-3.2/Modules/FindOpenSSL.cmake:324 (find_package_handle_standard_args)
CMakeLists.txt:122 (find_package)
FindOpenSSL.cmake文件中寻找OpenSSL版本的时候,需要引用到OpenSSL源码文件中的版本记录文件,因此需要添加版本号
第一种方案
网址:http://slproweb.com/products/Win32OpenSSL.html
下载:Win32 OpenSSL v1.1.0h
以上是关于RabbitMQ第二课 Could NOT find OpenSSL的主要内容,如果未能解决你的问题,请参考以下文章