grafana / mqtt-datasource

MQTT Datasource for Grafana allows streaming data from any MQTT broker running either locally or remotely.
Apache License 2.0
168 stars 49 forks source link

Issue building on PiOS Bullseye #59

Open Trotter73 opened 1 year ago

Trotter73 commented 1 year ago

Hi,

I've been trying to build on PiOS Bullseye (Debain 11) 32Bit on a Pi3B and ran into a couple of problems.

Following the instructions here for Ubuntu, https://github.com/grafana/mqtt-datasource/issues/15#issuecomment-894477802

Firstly, it appears Node 16 is now required, there was an error thrown, easily fixed with this;

curl -sL https://deb.nodesource.com/setup_16.x | sudo bash -

Secondly, I got this error;

✔ Compiling... /home/pi/go/pkg/mod/github.com/grafana/grafana-plugin-sdk-go@v0.144.0/build/common.go:5:2: package embed is not in GOROOT (/usr/lib/go-1.15/src/embed) Error: error compiling magefiles error Command failed with exit code 1.

PiOS Bullseye (Debain 11) apparently ships with go1.15 but embed was only included in go1.16

Is there a way around this? I suppose I could use Ubuntu on the Pi but I am out of my comfort zone there, and would like to stick to PiOS if at all possible...

Many Thanks.