Trying to install on node where glusterfs is running but getting below errors:
`[root@storage1 gluster-prometheus]# echo $GOPATH
/root/work
[root@storage1 work]# mkdir -p $GOPATH/src/github.com/gluster
[root@storage1 work]# cd $GOPATH/src/github.com/gluster
[root@storage1 gluster]# git clone https://github.com/gluster/gluster-prometheus.git
Cloning into 'gluster-prometheus'...
remote: Enumerating objects: 799, done.
remote: Total 799 (delta 0), reused 0 (delta 0), pack-reused 799
Receiving objects: 100% (799/799), 233.54 KiB | 0 bytes/s, done.
Resolving deltas: 100% (439/439), done.
[root@storage1 gluster]# cd gluster-prometheus
[root@storage1 gluster-prometheus]#
[root@storage1 gluster-prometheus]# ./scripts/install-reqs.sh
LINUX
dep v0.5.0 or greater is already installed
gometalinter already installed
[root@storage1 gluster-prometheus]# PREFIX=/usr make
Go1.9 or later is available on the system.
dep package is available
gometalinter package is available
Installing vendored packages
(1/27) Wrote github.com/BurntSushi/toml@v0.3.1
(2/27) Wrote gopkg.in/yaml.v2@v2.2.2
(3/27) Wrote github.com/spf13/cast@v1.3.0
(4/27) Wrote github.com/pborman/uuid@v1.2
(5/27) Wrote github.com/sirupsen/logrus@v1.0.6
(6/27) Wrote github.com/pelletier/go-toml@v1.2.0
(7/27) Wrote github.com/hashicorp/hcl@v1.0.0
(8/27) Wrote github.com/beorn7/perks@master
(9/27) Wrote github.com/dgrijalva/jwt-go@v3.1.0
(10/27) Wrote github.com/spf13/pflag@v1.0.3
(11/27) Wrote github.com/spf13/afero@v1.1.2
(12/27) Wrote github.com/mitchellh/mapstructure@v1.1.2
(13/27) Wrote github.com/spf13/jwalterweatherman@v1.0.0
(14/27) Wrote github.com/fsnotify/fsnotify@v1.4.7
(15/27) Wrote github.com/matttproud/golang_protobuf_extensions@v1.0.1
(16/27) Wrote github.com/magiconair/properties@v1.8.0
(17/27) Wrote github.com/google/uuid@v1.1.0
(18/27) Wrote github.com/prometheus/client_model@master
(19/27) Wrote github.com/prometheus/common@master
(20/27) Wrote github.com/prometheus/procfs@master
(21/27) Wrote github.com/prometheus/client_golang@v0.8.0
(22/27) Wrote golang.org/x/crypto@master
(23/27) Wrote github.com/spf13/viper@v1.0.3
(24/27) Wrote golang.org/x/sys@master
(25/27) Wrote golang.org/x/text@v0.3.0
(26/27) Wrote github.com/gluster/glusterd2@master
(27/27) Wrote github.com/golang/protobuf@v1.2.0
**FASTBUILD=yes BASE_PREFIX="" GD1STATEDIR=""/var/lib/glusterd \
CONFFILE=""/etc/gluster-exporter/gluster-exporter.toml \
GD2STATEDIR=""/var/lib/glusterd2 ./scripts/build.sh gluster-exporter
Building gluster-exporter v0.3-dev.93.git3ebaacc
flag provided but not defined: -i
usage: go build [-o output] [build flags] [packages]
Run 'go help build' for details.
make: * [build/gluster-exporter] Error 1
[root@storage1 gluster-prometheus]#
Trying to install on node where glusterfs is running but getting below errors:
`[root@storage1 gluster-prometheus]# echo $GOPATH /root/work [root@storage1 work]# mkdir -p $GOPATH/src/github.com/gluster [root@storage1 work]# cd $GOPATH/src/github.com/gluster [root@storage1 gluster]# git clone https://github.com/gluster/gluster-prometheus.git Cloning into 'gluster-prometheus'... remote: Enumerating objects: 799, done. remote: Total 799 (delta 0), reused 0 (delta 0), pack-reused 799 Receiving objects: 100% (799/799), 233.54 KiB | 0 bytes/s, done. Resolving deltas: 100% (439/439), done. [root@storage1 gluster]# cd gluster-prometheus [root@storage1 gluster-prometheus]# [root@storage1 gluster-prometheus]# ./scripts/install-reqs.sh LINUX dep v0.5.0 or greater is already installed gometalinter already installed [root@storage1 gluster-prometheus]# PREFIX=/usr make Go1.9 or later is available on the system.
dep package is available gometalinter package is available
Installing vendored packages (1/27) Wrote github.com/BurntSushi/toml@v0.3.1 (2/27) Wrote gopkg.in/yaml.v2@v2.2.2 (3/27) Wrote github.com/spf13/cast@v1.3.0 (4/27) Wrote github.com/pborman/uuid@v1.2 (5/27) Wrote github.com/sirupsen/logrus@v1.0.6 (6/27) Wrote github.com/pelletier/go-toml@v1.2.0 (7/27) Wrote github.com/hashicorp/hcl@v1.0.0 (8/27) Wrote github.com/beorn7/perks@master (9/27) Wrote github.com/dgrijalva/jwt-go@v3.1.0 (10/27) Wrote github.com/spf13/pflag@v1.0.3 (11/27) Wrote github.com/spf13/afero@v1.1.2 (12/27) Wrote github.com/mitchellh/mapstructure@v1.1.2 (13/27) Wrote github.com/spf13/jwalterweatherman@v1.0.0 (14/27) Wrote github.com/fsnotify/fsnotify@v1.4.7 (15/27) Wrote github.com/matttproud/golang_protobuf_extensions@v1.0.1 (16/27) Wrote github.com/magiconair/properties@v1.8.0 (17/27) Wrote github.com/google/uuid@v1.1.0 (18/27) Wrote github.com/prometheus/client_model@master (19/27) Wrote github.com/prometheus/common@master (20/27) Wrote github.com/prometheus/procfs@master (21/27) Wrote github.com/prometheus/client_golang@v0.8.0 (22/27) Wrote golang.org/x/crypto@master (23/27) Wrote github.com/spf13/viper@v1.0.3 (24/27) Wrote golang.org/x/sys@master (25/27) Wrote golang.org/x/text@v0.3.0 (26/27) Wrote github.com/gluster/glusterd2@master (27/27) Wrote github.com/golang/protobuf@v1.2.0
**FASTBUILD=yes BASE_PREFIX="" GD1STATEDIR=""/var/lib/glusterd \ CONFFILE=""/etc/gluster-exporter/gluster-exporter.toml \ GD2STATEDIR=""/var/lib/glusterd2 ./scripts/build.sh gluster-exporter Building gluster-exporter v0.3-dev.93.git3ebaacc flag provided but not defined: -i usage: go build [-o output] [build flags] [packages] Run 'go help build' for details. make: * [build/gluster-exporter] Error 1 [root@storage1 gluster-prometheus]#
[root@storage1 gluster-prometheus]# [root@storage1 gluster-prometheus]# go env GO111MODULE="auto" GOARCH="amd64" GOBIN="" GOCACHE="/root/.cache/go-build" GOENV="/root/.config/go/env" GOEXE="" GOEXPERIMENT="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOINSECURE="" GOMODCACHE="/root/work/pkg/mod" GONOPROXY="" GONOSUMDB="" GOOS="linux" GOPATH="/root/work" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/usr/local/go" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64" GOVCS="" GOVERSION="go1.20" GCCGO="gccgo" GOAMD64="v1" AR="ar" CC="gcc" CXX="g++" CGO_ENABLED="0" GOMOD="/root/work/src/github.com/gluster/gluster-prometheus/go.mod" GOWORK="" CGO_CFLAGS="-O2 -g" CGO_CPPFLAGS="" CGO_CXXFLAGS="-O2 -g" CGO_FFLAGS="-O2 -g" CGO_LDFLAGS="-O2 -g" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build4081931158=/tmp/go-build -gno-record-gcc-switches" [root@storage1 gluster-prometheus]# `