cmake编译rabbitmq-c报错,版本为8.8.12.2
-- The C compiler identification is GNU 4.8.5
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- CMAKE_BUILD_TYPE not specified. Creating Release build
-- Found C inline keyword: inline
-- Looking for getaddrinfo
-- Looking for getaddrinfo - found
-- Looking for socket
-- Looking for socket - found
-- Looking for poll
-- Looking for poll - found
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Looking for posix_spawnp in rt
-- Looking for posix_spawnp in rt - found
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
system variable OPENSSL_ROOT_DIR (missing: OPENSSL_INCLUDE_DIR) (Required
is at least version "0.9.8")
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake/Modules/FindOpenSSL.cmake:313 (find_package_handle_standard_args)
CMakeLists.txt:122 (find_package)
-- Configuring incomplete, errors occurred!
See also "/usr/local/3rdParty/3rdPartyLibs/rabbitmq-c-master/CMakeFiles/CMakeOutput.log".
gmake: *** No targets specified and no makefile found. Stop.
make: *** No rule to make

文章讲述了在使用CMake编译rabbitmq-c时遇到OpenSSL找不到的问题,提到了更换CMake版本和设置OpenSSL路径的方法。作者发现升级CMake到3.6版本后,问题得以解决,但强调了后续在配置时注意指定OpenSSL相关路径的重要性。
最低0.47元/天 解锁文章
9060

被折叠的 条评论
为什么被折叠?



