Package rdkafka was not found in the pkg-config search path.

来源:互联网 发布:淘宝徐志摩诗集大全 编辑:程序博客网 时间:2024/05/17 02:06

问题

在使用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/lib/pkgconfig

使之生效:

$ source ~/.bashrc

参考:

更多信息可参考
http://blog.csdn.net/lanyang123456/article/details/78377152

阅读全文
0 0
原创粉丝点击