您需要安装以下内容才能使用C ++客户端:

There are separate compilation instructions for and Linux. For both systems, start by cloning the Pulsar repository:

  1. libprotobuf-dev protobuf-compiler libboost-all-dev google-mock libgtest-dev libjsoncpp-dev

Then compile and install :

最后,在Pulsar repo中编译C ++的Pulsar客户端库:

  1. $ cmake .

MacOS

首先,安装所有必需的依赖项:

然后在您克隆的repo中编译Pulsar客户端库:

  1. $ cd pulsar-client-cpp
  2. $ make