galexrt / dellhw_exporter

Prometheus exporter for Dell Hardware components using Dell OMSA.
https://dellhw-exporter.galexrt.moe
Apache License 2.0
119 stars 41 forks source link

make: /bin/promu: Command not found #30

Closed mozai closed 4 years ago

mozai commented 4 years ago

I believe 'promu' is missing from the list of dependencies in the README.md .

$ git clone https://github.com/galexrt/dellhw_exporter.git
$ cd dellhw_exporter
$ make
...
make: /bin/promu: Command not found
make: *** [Makefile:25: build] Error 127
galexrt commented 4 years ago

Please post the whole output of the make run. promu is fetched during the build target / process.

$ make
go fmt github.com/galexrt/dellhw_exporter/cmd/dellhw_exporter github.com/galexrt/dellhw_exporter/collector github.com/galexrt/dellhw_exporter/pkg/flagutil github.com/galexrt/dellhw_exporter/pkg/omreport
>> checking code style
>> vetting code
?       github.com/galexrt/dellhw_exporter/cmd/dellhw_exporter  [no test files]
?       github.com/galexrt/dellhw_exporter/collector    [no test files]
?       github.com/galexrt/dellhw_exporter/pkg/flagutil [no test files]
ok      github.com/galexrt/dellhw_exporter/pkg/omreport 0.004s
>> fetching promu
 >   dellhw_exporter
$
mozai commented 4 years ago

Nevermind, it was a bad $GOPATH envvar.

mozai commented 4 years ago

oddly, the "go get -u github.com/prometheus/promu" did put it in the right place, but later in the Makefile "${GOPATH}/bin/promu" turned into "/bin/promu" so of course it didn't find promu.