error $GOPATH: no library found in $GOPATH: rdkafka

Posted highend

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了error $GOPATH: no library found in $GOPATH: rdkafka相关的知识,希望对你有一定的参考价值。

安装confluent-kafka-go出错时,请使用brew安装pkg-config,手动go get安装的pkg-config还不行。。。

错误提示:

go get -u github.com/confluentinc/confluent-kafka-go/kafka


# pkg-config --cflags  -- rdkafka
error $GOPATH: no library found in $GOPATH: rdkafka
error github.com: PKG_CONDIF_GITHUB not exported, skipping github.com lookup
error $PKG_CONFIG_PATH: open rdkafka.pc: no such file or directory
error <autogenerated>: no library found in $GOPATH: rdkafka
pkg-config: exit status 1

 

解决:

brew install pkg-config

 

以上是关于error $GOPATH: no library found in $GOPATH: rdkafka的主要内容,如果未能解决你的问题,请参考以下文章

checking for termcap functions library... configure: error: No curses/termcap library found

Error: java.lang.UnsatisfiedLinkError: no ntvinv in java.library.path

报错:checking for termcap functions library... configure: error: No curses/termca

kafka.errors.UnsupportedCodecError: UnsupportedCodecError: Libraries for snappy compression codec no

error: No curses/termcap library found的解决办法

error while loading shared libraries: libiksemel.so.3: No such file or directory