serial-port-json-server icon indicating copy to clipboard operation
serial-port-json-server copied to clipboard

Error during build

Open dgtlmoon opened this issue 8 years ago • 5 comments

I had a few packages that were missing, so I ran apt-get install build-essentials

And now

osmc@osmc:~/go$ go get github.com/chilipeppr/serial-port-json-server
# golang.org/x/crypto/ed25519
src/golang.org/x/crypto/ed25519/ed25519.go:54: undefined: crypto.SignerOpts
# github.com/gorilla/websocket
src/github.com/gorilla/websocket/client.go:361: unknown tls.Config field 'GetCertificate' in struct literal

This is on a debian based system on rPi (osmc distro)

dgtlmoon avatar May 24 '16 19:05 dgtlmoon

build-essentials probably doesn't help the go language at all. a. you could just use the binary for linux that's in the releases of the github repo b. you should do go get's for all the libraries you get errors for

On Tue, May 24, 2016 at 1:22 PM, Leigh [email protected] wrote:

I had a few packages that were missing, so I ran apt-get install build-essentials

And now

osmc@osmc:~/go$ go get github.com/chilipeppr/serial-port-json-server

golang.org/x/crypto/ed25519

src/golang.org/x/crypto/ed25519/ed25519.go:54 http://golang.org/x/crypto/ed25519src/golang.org/x/crypto/ed25519/ed25519.go:54: undefined: crypto.SignerOpts

github.com/gorilla/websocket

src/github.com/gorilla/websocket/client.go:361 http://github.com/gorilla/websocketsrc/github.com/gorilla/websocket/client.go:361: unknown tls.Config field 'GetCertificate' in struct literal

This is on a debian based system on rPi (osmc distro)

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/chilipeppr/serial-port-json-server/issues/12

chilipeppr avatar May 24 '16 20:05 chilipeppr

yes ofcourse :) I'm just posting the issue here for reference

dgtlmoon avatar May 24 '16 21:05 dgtlmoon

I'm running the binary without problems btw.

dgtlmoon avatar May 24 '16 21:05 dgtlmoon

So, something go get crypto ?

dgtlmoon avatar May 24 '16 21:05 dgtlmoon

Look at the error and see the library it's referring to and that's what you "go get"

On Tue, May 24, 2016 at 2:37 PM, Leigh [email protected] wrote:

So, something go get crypto ?

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/chilipeppr/serial-port-json-server/issues/12#issuecomment-221405161

chilipeppr avatar May 24 '16 21:05 chilipeppr