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

build fail in centos7 env #4

Closed
superstring opened this issue Apr 19, 2020 · 1 comment
Closed

build fail in centos7 env #4

superstring opened this issue Apr 19, 2020 · 1 comment

Comments

@superstring
Copy link

here is log

[root@hadoop100 flume_exporter]# make build
go: github.com/prometheus/promu upgrade => v0.5.0
go: google.golang.org/appengine upgrade => v1.6.5
go: github.com/prometheus/client_golang upgrade => v1.5.1
go: github.com/beorn7/perks upgrade => v1.0.1
go: github.com/prometheus/client_model upgrade => v0.2.0
go: gopkg.in/yaml.v2 upgrade => v2.2.8
go: github.com/pkg/errors upgrade => v0.9.1
go: golang.org/x/sys upgrade => v0.0.0-20200413165638-669c56c373c4
go: github.com/alecthomas/template upgrade => v0.0.0-20190718012654-fb15b899a751
go: github.com/prometheus/common upgrade => v0.9.1
go: golang.org/x/oauth2 upgrade => v0.0.0-20200107190931-bf48bf16ab8d
go: github.com/alecthomas/units upgrade => v0.0.0-20190924025748-f65c72e2690d
go: github.com/prometheus/procfs upgrade => v0.0.11
go: github.com/golang/protobuf upgrade => v1.4.0
go: github.com/google/go-github/v25 upgrade => v25.1.3
go: golang.org/x/net upgrade => v0.0.0-20200324143707-d3edc9973b7e
go: google.golang.org/protobuf upgrade => v1.21.0
>> building binaries
 >   flume_exporter
can't load package: cannot find module providing package github.com/woozhijun/flume_exporter: working directory is not part of a module
!! command failed: build -o /root/go/src/github.com/woozhijun/flume_exporter/flume_exporter -ldflags -X github.com/prometheus/common/version.Version=0.0.2 -X github.com/prometheus/common/version.Revision=3fcc3edffd58e51b3a54046da1701a817789802c -X github.com/prometheus/common/version.Branch=master -X github.com/prometheus/common/version.BuildUser=root@hadoop100 -X github.com/prometheus/common/version.BuildDate=20200419-00:07:11  -extldflags '-static' -a -tags netgo github.com/woozhijun/flume_exporter: exit status 1
make: *** [build] 错误 1
[root@hadoop100 flume_exporter]# 
@woozhijun
Copy link
Owner

you need to create $GOPATH/github.com/woozhijun/flume_exporter build

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