Skip to content
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

Just using "go get" is not working, but "go mod init" then "go get" is working #292

Open
sunrise2575 opened this issue Nov 24, 2020 · 0 comments

Comments

@sunrise2575
Copy link

sunrise2575 commented Nov 24, 2020

Environment:

  • Ubuntu 18.04
  • gcc 7.5.0

Prerequisites:

apt install libsodium-dev libczmq-dev libzmq3-dev -y

A. Not-working command:

mkdir zmqtest
go get github.com/zeromq/goczmq

Output:

# github.com/zeromq/goczmq
../go/src/github.com/zeromq/goczmq/sock_option.go:37:3: could not determine kind of name for C.zsock_set_router_notify

Compiling is failed with same message like ... C.zsock_set_router_notify


B. Working command:

mkdir zmqtest
go mod init zmqtest
go get github.com/zeromq/goczmq

Output:

go: github.com/zeromq/goczmq upgrade => v4.1.0+incompatible

go mod version successfully compiles the goczmq example code.

But the install manual didn't tell that go mod is mandatory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant