libp2p / go-libp2p-examples

Example libp2p applications
MIT License
339 stars 145 forks source link

Can't build chat-with-rendezvous go-reuseport #58

Closed JackBekket closed 5 years ago

JackBekket commented 5 years ago

Hello!

I completed these steps:

  1. mkdir /tmp/libp2p-examples
    export GOPATH=/tmp/libp2p/examples
  2. make deps
  3. cd chat-with-rendezvous/
  4. go build -o chat

It shows me that

# github.com/libp2p/go-reuseport
/tmp/libp2p/examples/src/github.com/libp2p/go-reuseport/interface.go:33:20: undefined: net.ListenConfig
/tmp/libp2p/examples/src/github.com/libp2p/go-reuseport/interface.go:41:2: not enough arguments to return
/tmp/libp2p/examples/src/github.com/libp2p/go-reuseport/interface.go:48:2: not enough arguments to return
/tmp/libp2p/examples/src/github.com/libp2p/go-reuseport/interface.go:60:10: unknown field 'Control' in struct literal of type net.Dialer

Is anything possibly wrong with my go version or package installing?

JackBekket commented 5 years ago

Find out that go must be an 1.11 version, not 1.10