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

问题

复制代码
1
2
3
4
5
6
7
8
$ 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 末尾添加 ***

复制代码
1
2
3
4
5
6
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内容请搜索靠谱客的其他文章。

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

评论列表共有 0 条评论

立即
投稿
返回
顶部