1. 下载librdkafka
2、解压
3.编译:make && make install
4. 环境变量指定PKG_CONFIG_PATH: export PKG_CONFIG_PATH=/usr/lib/librdkafka/src/