-
Notifications
You must be signed in to change notification settings - Fork 663
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not determine kind of name for C.RD_KAFKA_EVENT_STATS #61
Comments
Hi,.. You need to build and install librdkafka master, or use go client
release 0.9.4
Den 11 maj 2017 1:27 em skrev "Ram Bharose Rana" <notifications@github.com>:
… Pulled latest changes. when i am trying run go code getting this error
*could not determine kind of name for C.RD_KAFKA_EVENT_STATS*
Here my machine configuration
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/rb/workspace"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.8.1/libexec"
GOTOOLDIR="/usr/local/Cellar/go/1.8.1/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/jm/rf97g_5d6p91cpp6s_jgzn140000gn/T/go-build788309128=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#61>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAgCvrtTYMPgcY4dhBOZOG03UdO2zSnCks5r4vCQgaJpZM4NX3NV>
.
|
Thanks, i got working 👍 |
I have |
@mewwts The master branch of the Go client requires the master branch of librdkafka (the development is kept in synch). So you have two options:
|
Thanks a bunch @edenhill - that was clarifying! |
@edenhill Hi edenhill,
pkg-config --cflags rdkafka
Do i need to install librdkafka 0.9.4 for making it sync with confluent-kafka-go v0.9.4-RC2 ? Any clue on this issue ? |
pkg-config will need to find the rdkafka.pc file that is installed when you do 'make install' in librdkafka, the location depends on ./configure --prefix and defaults to /usr/local.
|
@edenhill thank you very much for your reply. I did the same things previously that you have described in your comment. But still the same error after cleaning up every thing and re installing librdkafka from source then doing Its showing following error again: If i install librdkafka from rpm then importing kafka using I cleaned up everything and started again both way its showing the same error. |
Sorry for the delay. The first problem seems to be an installation path problem, librdkafka is installed into a location where pkg-config will not look. You can probably set up PKG_CONFIG_PATH to point to the directory containing the installed rdkafka.pc file. The latter problem is that the RPM package is too old, you should use the Confluent YUM repositories to make sure you have the latest version of librdkafka installed: I would go for this second approach. |
@edenhill /tmp/go-build129217119/command-line-arguments/_obj/exe/producer_example: error while loading shared libraries: librdkafka.so.1: cannot open shared object file: No such file or directory how can i fix it? |
@liaoyizhe Make sure to install librdkafka v0.11.0 as instructed here: |
hello,
i dont have pkg-config on windows
how can i use the first one ? if i want the latest librdkafka release from |
Hi @edenhill , 2017/12/11 07:51:34 ERROR ▶ 0005 Failed to build the application: # github.com/confluentinc/confluent-kafka-go/kafka Then I build it from source, another error occurred: 2017/12/11 08:07:06 ERROR ▶ 0005 Failed to build the application: # github.com/confluentinc/confluent-kafka-go/kafka File rdkafka++.pc and rdkafka.pc exist under folder /usr/lib/pkgconfig, and export PKG_CONFIG_PATH=/usr/lib/pkgconfig was executed. Could you help to give me some advice? Not sure what went wrong. |
That looks like it is finding librdkafka >0.11.0 when compiling (rdkafka.h header file) but not when linking (library file). I suggest removing all installed versions of librdkafka from your system, using both your package manager and by searching for rdkafka.h and librdkafka.so*. Then build and install librdkafka 0.11.3 (latest version) and then rebuild the Go client ( |
@edenhill |
@lisadeng Glad to hear! |
Pulled latest changes. when i am trying run go code getting this error
could not determine kind of name for C.RD_KAFKA_EVENT_STATS
Here my machine configuration
The text was updated successfully, but these errors were encountered: