---
title: "MacOS M1 安装rocketmq-client-python"
author: "cooler1217"
date: "2021-11-25T17:26:09Z"
tags: []
categories: ["开源软件"]
slug: "macos-m1-rocketmq-client-python"
draft: false
lastmod: "2021-11-25T17:26:09Z"
id: 2521597
url: "https://cooler1217.iteye.com/blog/2521597"
---

1 下载  https://github.com/apache/rocketmq-client-cpp/tree/master#build-and-install  
 选择源码下载 
2 下载boot，这个源码中制定的是1.58，已经不可用，换成1.77
https://boostorg.jfrog.io/artifactory/main/release/1.77.0/source/

3 将压缩文件放入到 rocketmq-client-cpp-2.0.0/tem_download_dir 中
4 执行build.sh

5 成功后执行如下操作：
    mkdir /usr/local/include/rocketmq
    cp rocketmq-client-cpp-2.0.0/bin/* /usr/local/include/rocketmq
    cp rocketmq-client-cpp-2.0.0/bin/librocketmq* /usr/local/lib
    install_name_tool -id "@rpath/librocketmq.dylib" /usr/local/lib/librocketmq.dylib

大功告成！