Open bsmelo opened 6 years ago
BTW, my go installation details:
$ /usr/lib/go-1.10/bin/go version
go version go1.10 linux/amd64
$ /usr/lib/go-1.10/bin/go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/bruno/.cache/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/bruno/Dropbox/coap-apps/go"
GORACE=""
GOROOT="/usr/lib/go-1.10"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go-1.10/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build300198286=/tmp/go-build -gno-record-gcc-switches"
Well, as I said, the problem was indeed my inexperience with go...:
$ /usr/lib/go-1.10/bin/go install
$ /usr/lib/go-1.10/bin/go run examples/simple/server.go
2018/03/21 15:13:33 Started CoAP Server [::]:5683
Maybe we should add these detailed steps to the README
file? LD_LIBRARY_PATH
came to me due to my experience with Linux, but it's not obvious, as well as the go install
step. Should I make a PR for that file?
And thanks anyway! This looks like an amazingly complete implementation of CoAP and related RFCs. :)
Hello,
First of all, I'm very new to go, so maybe that is my actual problem... But I can't get the examples to run. The closer I got was by following the steps below:
So I've tried the following, but still with no success:
What should I do? By the way, I don't even want to run the DTLS-enabled examples, just the plain CoAP ones will do...
Thanks! Bruno Melo.