IzakMarais / reporter

Service that generates a PDF report from a Grafana dashboard
Apache License 2.0
947 stars 307 forks source link

grafana-reporter: command not found #301

Closed drled closed 3 years ago

drled commented 3 years ago

I'm trying to install the reporter in a Ubuntu envirement: upon entering the "grafana-reporter" command i get: ubuntu@:~/go/bin$ grafana-reporter grafana-reporter: command not found

Any ideas? There were no errors during installation.

fntkg commented 3 years ago

Is $GOPATH/bin (e.g /root/.go/bin) in you system path?

drled commented 3 years ago

grafana_reporter_error

if i navigate to the folder i still get this issue

fntkg commented 3 years ago

To execute a file in the same folder you have to ./grafana-reporter

Anyways, you can export PATH=$PATH:/path/to/go/bin so the command is now in your path and your terminal will be able to locate it! In this case, you should do:

export PATH=$PATH:$GOPATH/bin
drled commented 3 years ago

This did the trick for me, is working fine now. Thank you!