码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2019-04-15 20:09:19      阅读:164      评论:0      收藏:0      [点我收藏+]

标签:file   exp   path   conf   cond   git   rdkafka   出错   director   

安装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

标签:file   exp   path   conf   cond   git   rdkafka   出错   director   

原文地址:https://www.cnblogs.com/highend/p/fix_rdkafka_library_not_found.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!