在使用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 时遇到如下问题)