我是靠谱客的博主 犹豫白开水,这篇文章主要介绍在使用confluent-kafka-go 时遇到如下问题,现在分享给大家,希望可以做个参考。

问题

$ go build t.go
# pkg-config --cflags rdkafka
Package rdkafka was not found in the pkg-config search path.
Perhaps you should add the directory containing `rdkafka.pc'
to the PKG_CONFIG_PATH environment variable
No package 'rdkafka' found
pkg-config: exit status 1

解决办法:

*** 文件~/.bashrc 末尾添加 ***


export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/

#source ~/.bashrc

转载于:https://www.cnblogs.com/Qing-840/p/11193238.html

最后

以上就是犹豫白开水最近收集整理的关于在使用confluent-kafka-go 时遇到如下问题的全部内容,更多相关在使用confluent-kafka-go内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(124)

评论列表共有 0 条评论

立即
投稿
返回
顶部