Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to start the exporter #12

Open
Joshhat opened this issue Aug 8, 2019 · 1 comment

Comments

@Joshhat
Copy link

commented Aug 8, 2019

I'm sure I just haven't done something right - but I'm unable to even start the exporter.

I have installed Golang 1.12, and then removed and installed 1.11. So currently on 1.11 but the issue occurs on both.

Downloaded the pihole_exporter-linux-amd64 file as I am using Ubuntu Server however when I do ./pihole_exporter-linux-amd64 I get the error message "command not found" - I'm sure i've missed something very basic, I'm not very cluey with this kind of stuff.

I am also unable to run the GO111MODULE=on go mod vendor as I get a 'cannot find main module' error so maybe it's a golang issue? All help is appreciated.

Regards

@eko

This comment has been minimized.

Copy link
Owner

commented Aug 10, 2019

Hi @Joshhat,

You are trying to execute the binary file so you don’t have to / can’t install Go modules.

I think you have « command not found » because you have to mark the binary as executable running:

chmod a+x ./pihole_exporter-linux-amd64

Then you should be able to call:

./pihole_exporter-linux-amd64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.