首页 技术 正文
技术 2022年11月19日
0 收藏 902 点赞 2,244 浏览 1111 个字

rabbitmq官网地址

rabbitmq客户端 c++版本地址

rabbitmq客户端 c版本地址

下载c++版本:根据编译说明

Pre-requisites

  • boost-1.47.0 or newer (uses chrono, system internally in addition to other header based libraries such as sharedptr and noncopyable)
  • rabbitmq-c you’ll need version 0.5.1 or better.
  • cmake 2.8+ what is needed for the build system
  • Doxygen OPTIONAL only necessary to generate API documentation

所以1:去boost官网下载大于1.47.0的版本,我下的是boost_1_60_0.tar.bz2并编译安装

    ./bootstrap.sh –prefix=/usr/local/boost-1.60.0

     sudo ./b2 install

     cp -rf /usr/local/boost-1.60.0/include/boost  /usr/include

     cp -rf /usr/local/boost-1.60.0/lib /usr/lib

     export Boost_LIBRARY_DIRS=/usr/lib

     cmake .. (如果没有cmake,先安装yum install cmake)

     make

     make install

  2:下载rabbitmq-c,并编译安装

需要openssl,所以先安装ssl开发包:yum install openssl-devel (unbuntu系统貌似为:sudo apt-get install libssl-dev 我的为rhel6.0)

    LINUX系统一般事先会安装openssl的发行版(用 openssl version -a 命令就可以看到),但是还是需要安装开发版本才行,否则会提示一大堆环境变量无法识别的错误:比如

    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)    然后, 

     cmake .. (如果没有cmake,先安装yum install cmake)

     make

     make install

以下是我编译好的c++版本的库文件    

编译rabbitmq  c++客户端

 

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,085
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,560
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,409
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,182
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,819
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,902