使用kafka编译时报错: gcc: error: /usr/lib/librdkafka-static.a: No such file or directory

1. 下载librdkafka

2、解压

3.编译:make && make install

4. 环境变量指定PKG_CONFIG_PATH: export PKG_CONFIG_PATH=/usr/lib/librdkafka/src/

 

posted @ 2020-09-27 11:10  骑着蜗牛看海呀  阅读(1284)  评论(0编辑  收藏  举报