chilipeppr / serial-port-json-server

Serial Port JSON Server is a websocket server for your serial devices. It compiles to a binary for Windows, Mac, Linux, Raspberry Pi, or BeagleBone Black that lets you communicate with your serial port from a web application. This enables web apps to be written that can communicate with your local serial device such as an Arduino, CNC controller, or any device that communicates over the serial port.
http://chilipeppr.com
GNU General Public License v2.0
322 stars 101 forks source link

Error during build #12

Open dgtlmoon opened 8 years ago

dgtlmoon commented 8 years ago

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)

chilipeppr commented 8 years ago

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 notifications@github.com 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

dgtlmoon commented 8 years ago

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

dgtlmoon commented 8 years ago

I'm running the binary without problems btw.

dgtlmoon commented 8 years ago

So, something go get crypto ?

chilipeppr commented 8 years ago

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 notifications@github.com 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