一、环境:
PC操作系统:CentOS Linux release 7.9.2009 (Core)
gcc 版本:4.8.5 20150623 (Red Hat 4.8.5-44) (GCC)
rocketmq-client-cpp版本:2.2.0
二、下载
网址:https://github.com/apache/rocketmq-client-cpp
提示:找release版本下载可能会更靠谱一些,然后如果编译不出静态库可能是什么库没装好,反正我折腾了挺久的。
三、环境准备安装
1、安装基本开发环境
这个在根目录下的README.MD文件就有说明了,而我一直没有搞出来应该是因为少了zlib-devel库。
### Linux and Mac OS
**note**: make sure the following compile tools or libraries have been installed before running the build script **build.sh**.
- compile tools:
- gcc-c++ 4.8.2: c++ compiler while need support C++11
- cmake 2.