git clone https://github.com/edenhill/librdkafka.git
cd librdkafka
./configure --prefix /usr/local/librdkafka --enable-static --install-deps
make
sudo make install
/etc/profile文件中添加下面配置
export PKG_CONFIG_PATH=/usr/lib/pkgconfig
git clone https://github.com/edenhill/librdkafka.git
cd librdkafka
./configure --prefix /usr/local/librdkafka --enable-static --install-deps
make
sudo make install
/etc/profile文件中添加下面配置
export PKG_CONFIG_PATH=/usr/lib/pkgconfig