git clone https://github.com/edenhill/librdkafka.git
git
cd librdkafka
github
./configure --prefix /usr
ui
make
code
sudo make install
get
go get -u github.com/confluentinc/confluent-kafka-go/kafka
kafka
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