liunx 安裝 confluent-kafka-go

安裝librdkafka

git clone https://github.com/edenhill/librdkafka.gitgit

cd librdkafkagithub

./configure --prefix /usrui

makecode

sudo make installget

下載源碼

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

以上都githup給出的,須要執行如下命令,不然會異常

sudo ldconfig源碼

/tmp/go-build616273194/b001/exe/consumer: error while loading shared libraries: librdkafka.so.1: cannot open shared object file: No such file or directoryit

相關文章
相關標籤/搜索