Linux下编译ActiveMQ库及其依赖

本文介绍了如何在Linux环境下安装apr依赖的库,如libtool、autoconf、automake和openssl,以及如何为Apache ActiveMQ和CMSClient编译并安装所需的apr版本。附上下载链接和实例步骤,适合C++开发者连接ActiveMQ。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


activemq依赖apr,apr依赖libtool,openssl等。

apr 依赖的库

可能linux原先并没有安装libtool,autoconf,automake,openssl,需要安装下,否则编译apr的时候会报错。
libtool,autoconf,automake下载地址:
ftp://ftp.gnu.org/gnu/

#autoconf-2.70
./configure
make
make install
#automake-1.16
./bootstrap
./configure
make
make install
#libtool-2.4.6
#./bootstrap
./configure
make
make install

下载openssl,https://www.openssl.org/

#openssl-1.1.01
./config
./Configure
make
make install

cms依赖apr

APR-Apache Portable Runtime Project.
https://apr.apache.org/download.cgi

#apr-1.7.0
./buildconf
./configure --prefix=/home/usinglibs/apr #安装路径需要建立
make
make install

CMS Client

The CMS API is a JMS-like API for C++ for interfacing with Message Brokers such as Apache ActiveMQ.
下载地址:
https://activemq.apache.org/components/cms/
这里:activemq-cpp-library-3.9.5-src.tar.gz

tar -zxvf activemq-cpp-library-3.9.5-src.tar.gz
cd activemq-cpp-library-3.9.5
./configure --prefix=/home/usinglibs/activemq --with-apr=/usr/usinglibs/apr
make
make install

编译好了对应位置有相应的lib和头文件。
在这里插入图片描述

本人下载使用的库分享“linux下activemq及其依赖库.zip”:
链接:https://pan.baidu.com/s/14Rn-riiY-GOB_E4TIXsCYw
提取码:kfao

示例看我的这篇文章

Windows下实现C++ 连接ActiveMQ:https://blog.youkuaiyun.com/lishenluo/article/details/107864758?spm=1001.2014.3001.5502

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值