git clone https://github.com/edenhill/librdkafka.git ./librdkafka cd ./librdkafka ./configure # Or, to automatically install dependencies using the system's package manager: # ./configure --install-deps # Or, build dependencies from source: # ./configure --install-deps --source-deps-only make sudo make install
$ cd ~/librdkafka/examples/cpp $ ./producer % Created producer rdkafka#producer-1 hello world % Produced message (11 bytes) $ ./consumer % Created consumer rdkafka#consumer-1 Read msg at offset 7 hello world