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

make faild. gluster-exporter/conf/conf.go:9:2: cannot find package "." in: #180

Open
DuskLi opened this issue May 11, 2020 · 1 comment
Open

Comments

@DuskLi
Copy link

DuskLi commented May 11, 2020

Hi,
I build the gluster-prometheus follow the README step, but make faild.
The operation log is as follows.
How should I solve this problem ?

Thanks!

[root@lab-home 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 gopkg.in/[email protected]
(2/27) Wrote github.com/pborman/[email protected]
(3/27) Wrote github.com/spf13/[email protected]
(4/27) Wrote github.com/mitchellh/[email protected]
(5/27) Wrote github.com/google/[email protected]
(6/27) Wrote github.com/prometheus/[email protected]
(7/27) Wrote github.com/BurntSushi/[email protected]
(8/27) Wrote github.com/beorn7/perks@master
(9/27) Wrote github.com/dgrijalva/[email protected]
(10/27) Wrote github.com/fsnotify/[email protected]
(11/27) Wrote github.com/golang/[email protected]
(12/27) Wrote github.com/matttproud/[email protected]
(13/27) Wrote github.com/gluster/glusterd2@master
(14/27) Wrote github.com/magiconair/[email protected]
(15/27) Wrote github.com/pelletier/[email protected]
(16/27) Wrote github.com/hashicorp/[email protected]
(17/27) Wrote github.com/prometheus/client_model@master
(18/27) Wrote github.com/prometheus/common@master
(19/27) Wrote github.com/prometheus/procfs@master
(20/27) Wrote github.com/spf13/[email protected]
(21/27) Wrote github.com/sirupsen/[email protected]
(22/27) Wrote github.com/spf13/[email protected]
(23/27) Wrote github.com/spf13/[email protected]
(24/27) Wrote github.com/spf13/[email protected]
(25/27) Wrote golang.org/x/sys@master
(26/27) Wrote golang.org/x/crypto@master
(27/27) Wrote golang.org/x/[email protected]

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.91.git863db4b
gluster-exporter/conf/conf.go:9:2: cannot find package "." in:
/root/go/src/github.com/BurntSushi/toml
pkg/glusterutils/enable_profile_gd2.go:5:2: cannot find package "." in:
/root/go/src/github.com/gluster/glusterd2/pkg/api
pkg/glusterutils/common.go:7:2: cannot find package "." in:
/root/go/src/github.com/gluster/glusterd2/pkg/restclient
gluster-exporter/metric_brick.go:16:2: cannot find package "." in:
/root/go/src/github.com/prometheus/client_golang/prometheus
gluster-exporter/main.go:17:2: cannot find package "." in:
/root/go/src/github.com/prometheus/client_golang/prometheus/promhttp
gluster-exporter/metrics.go:7:2: cannot find package "." in:
/root/go/src/github.com/prometheus/common/model
pkg/glusterutils/enable_profile_gd1.go:5:2: cannot find package "." in:
/root/go/src/github.com/sirupsen/logrus
make: *** [build/gluster-exporter] Error 1

@limiao2008
Copy link

install go and use go build easyly
#187 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants