google / mtail

extract internal monitoring data from application logs for collection in a timeseries database
Apache License 2.0
3.83k stars 378 forks source link

can't load package: package github.com/google/mtail: no Go files in /root/go/src/github.com/google/mtail #250

Closed AATHITH closed 5 years ago

AATHITH commented 5 years ago

root@STG:~/go/src/github.com/google/mtail# mtail -version mtail version invalid:-use-make-to-build git revision invalid:-use-make-to-build go version go1.12.7 go arch amd64 go os linux

How to install MTAIL perfectly in ubuntu? what is this message saying? how to fix this??

jaqx0r commented 5 years ago

How did you install this mtail? It looks like you used go get and that's not correct, please type make as the error message suggested.

On Fri., 2 Aug. 2019, 14:13 AATHITH, notifications@github.com wrote:

root@STG:~/go/src/github.com/google/mtail# mtail -version mtail version invalid:-use-make-to-build git revision invalid:-use-make-to-build go version go1.12.7 go arch amd64 go os linux

How to install MTAIL perfectly in ubuntu? what is this message saying? how to fix this??

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/google/mtail/issues/250?email_source=notifications&email_token=AAXFX66QBWG7QQHKO36ON2LQCO66NA5CNFSM4II2N6V2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HC7FVHQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AAXFX67RISPYOLL42C7FMSDQCO66NANCNFSM4II2N6VQ .

AATHITH commented 5 years ago

go install github.com/google/mtail/cmd/mtail I used this command to install.

When try the following, i'm getting a different error, go get -u github.com/google/mtail - when i execute this command it is showing like this.

package github.com/google/mtail: no Go files in /root/go/src/github.com/google/mtail

cd $GOPATH/src/github.com/google/mtail- the source file is cloned here

make test results:

can't load package: package github.com/google/mtail: no Go files in /root/go/src/github.com/google/mtail

AATHITH commented 5 years ago

mtail is just 3 line install: go get.. cd... make....boom nothing worked

jaqx0r commented 5 years ago

Can you copy and paste your commands and the output instead of typing abbreviations? I can't help you if you don't show me what the errors are.

On Fri, 2 Aug 2019 at 19:59, AATHITH notifications@github.com wrote:

just 3 line install and not working properly go get.. cd... make....boom nothing worked

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/google/mtail/issues/250?email_source=notifications&email_token=AAXFX6ZERRVCNF3EEFH34PLQCQAPXA5CNFSM4II2N6V2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3NJPLI#issuecomment-517642157, or mute the thread https://github.com/notifications/unsubscribe-auth/AAXFX6ZDKYE2GCX6NNEAUIDQCQAPXANCNFSM4II2N6VQ .

AATHITH commented 5 years ago

Here is my full command and errors go get -u github.com/google/mtail - when I execute this command it is showing like this.

package github.com/google/mtail: no Go files in /root/go/src/github.com/google/mtail

cd $GOPATH/src/github.com/google/mtail- I entered into this directory and make- make results in

go generate -x ./internal/vm/parser goyacc -v y.output -o parser.go -p mtail parser.y /usr/bin/convert logo.png -define icon:auto-resize=64,48,32,16 internal/mtail/logo.ico || touch internal/mtail/logo.ico /bin/sh: 1: /usr/bin/convert: not found Install all dependencies, ensuring they're updated go get -v bufio bytes context contrib.go.opencensus.io/exporter/jaeger crypto/rand encoding/json expvar flag fmt github.com/fsnotify/fsnotify github.com/golang/glog github.com/golang/groupcache/lru github.com/google/go-cmp/cmp github.com/google/go-cmp/cmp/cmpopts github.com/pkg/errors github.com/prometheus/client_golang/prometheus github.com/prometheus/client_golang/prometheus/promhttp github.com/prometheus/common/version go.opencensus.io/trace go.opencensus.io/zpages html/template io io/ioutil math math/big math/rand net net/http net/http/pprof os os/exec os/signal path path/filepath reflect regexp regexp/syntax runtime runtime/debug sort strconv strings sync sync/atomic syscall testing text/tabwriter time unicode unicode/utf8 github.com/uber/jaeger-client-go (download) github.com/hashicorp/golang-lru (download) github.com/fsnotify/fsnotify (download) github.com/golang/glog (download) github.com/golang/groupcache (download) github.com/google/go-cmp (download) github.com/pkg/errors (download) github.com/prometheus/client_golang (download) github.com/beorn7/perks (download) github.com/golang/protobuf (download) github.com/prometheus/client_model (download) github.com/prometheus/common (download) github.com/matttproud/golang_protobuf_extensions (download) github.com/prometheus/procfs (download) github.com/google/go-cmp/cmp/internal/value github.com/golang/protobuf/proto github.com/google/go-cmp/cmp github.com/google/go-cmp/cmp/cmpopts github.com/prometheus/procfs github.com/prometheus/client_model/go github.com/matttproud/golang_protobuf_extensions/pbutil github.com/golang/protobuf/ptypes/any github.com/golang/protobuf/ptypes/duration github.com/prometheus/client_golang/prometheus/internal github.com/prometheus/common/expfmt github.com/golang/protobuf/ptypes/timestamp github.com/golang/protobuf/ptypes google.golang.org/genproto/googleapis/rpc/status google.golang.org/grpc/status go.opencensus.io/plugin/ocgrpc github.com/prometheus/client_golang/prometheus github.com/prometheus/common/version github.com/prometheus/client_golang/prometheus/promhttp go get -v bufio context encoding/json errors expvar fmt github.com/golang/glog github.com/pkg/errors github.com/prometheus/client_golang/prometheus/testutil io io/ioutil math math/rand net/http net/http/httptest os os/user path path/filepath reflect regexp regexp/syntax runtime sort strconv strings sync syscall testing testing/quick time github.com/prometheus/client_golang/prometheus/testutil touch .dep-stamp echo "mtail: $(go list -f '{{if not .Standard}}{{.Dir}}{{end}}' $(go list -f '{{ join .Deps "\n" }}' cmd/mtail/main.go) | sed -e 's@$@/.go@' | tr "\n" " " )" > .d/mtail.d GO111MODULE=on go build -ldflags "-X main.Branch=master -X main.Version=v3.0.0-rc33-1-g6128742 -X main.Revision=6128742ae88749a3933b36bd8cea7404cb957fe1" -o mtail cmd/mtail/main.go echo "mgen: $(go list -f '{{if not .Standard}}{{.Dir}}{{end}}' $(go list -f '{{ join .Deps "\n" }}' cmd/mgen/main.go) | sed -e 's@$@/.go@' | tr "\n" " " )" > .d/mgen.d GO111MODULE=on go build -ldflags "-X main.Branch=master -X main.Version=v3.0.0-rc33-1-g6128742 -X main.Revision=6128742ae88749a3933b36bd8cea7404cb957fe1" -o mgen cmd/mgen/main.go echo "mdot: $(go list -f '{{if not .Standard}}{{.Dir}}{{end}}' $(go list -f '{{ join .Deps "\n" }}' cmd/mdot/main.go) | sed -e 's@$@/*.go@' | tr "\n" " " )" > .d/mdot.d GO111MODULE=on go build -ldflags "-X main.Branch=master -X main.Version=v3.0.0-rc33-1-g6128742 -X main.Revision=6128742ae88749a3933b36bd8cea7404cb957fe1" -o mdot cmd/mdot/main.go

My GO version - go version go1.12.7 linux/amd64

My GO ENV -

GOARCH="amd64" GOBIN="" GOCACHE="/root/.cache/go-build" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="/root/go" GOPROXY="" GORACE="" GOROOT="/usr/local/go" GOTMPDIR="" GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64" GCCGO="gccgo" CC="gcc" CXX="g++" CGO_ENABLED="0" GOMOD="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build365346898=/tmp/go-build -gno-record-gcc-switches"

please help me

jaqx0r commented 5 years ago

So it looks like it worked then?

On Mon, 12 Aug 2019 at 14:52, AATHITH notifications@github.com wrote:

Here is my full command and errors go get -u github.com/google/mtail - when I execute this command it is showing like this.

package github.com/google/mtail: no Go files in /root/go/src/ github.com/google/mtail

cd $GOPATH/src/github.com/google/mtail- I entered into this directory and make- make results in

go generate -x ./internal/vm/parser goyacc -v y.output -o parser.go -p mtail parser.y /usr/bin/convert logo.png -define icon:auto-resize=64,48,32,16 internal/mtail/logo.ico || touch internal/mtail/logo.ico /bin/sh: 1: /usr/bin/convert: not found Install all dependencies, ensuring they're updated go get -v bufio bytes context contrib.go.opencensus.io/exporter/jaeger crypto/rand encoding/json expvar flag fmt github.com/fsnotify/fsnotify github.com/golang/glog github.com/golang/groupcache/lru github.com/google/go-cmp/cmp github.com/google/go-cmp/cmp/cmpopts github.com/pkg/errors github.com/prometheus/client_golang/prometheus github.com/prometheus/client_golang/prometheus/promhttp github.com/prometheus/common/version go.opencensus.io/trace go.opencensus.io/zpages html/template io io/ioutil math math/big math/rand net net/http net/http/pprof os os/exec os/signal path path/filepath reflect regexp regexp/syntax runtime runtime/debug sort strconv strings sync sync/atomic syscall testing text/tabwriter time unicode unicode/utf8 github.com/uber/jaeger-client-go (download) github.com/hashicorp/golang-lru (download) github.com/fsnotify/fsnotify (download) github.com/golang/glog (download) github.com/golang/groupcache (download) github.com/google/go-cmp (download) github.com/pkg/errors (download) github.com/prometheus/client_golang (download) github.com/beorn7/perks (download) github.com/golang/protobuf (download) github.com/prometheus/client_model (download) github.com/prometheus/common (download) github.com/matttproud/golang_protobuf_extensions (download) github.com/prometheus/procfs (download) github.com/google/go-cmp/cmp/internal/value github.com/golang/protobuf/proto github.com/google/go-cmp/cmp github.com/google/go-cmp/cmp/cmpopts github.com/prometheus/procfs github.com/prometheus/client_model/go github.com/matttproud/golang_protobuf_extensions/pbutil github.com/golang/protobuf/ptypes/any github.com/golang/protobuf/ptypes/duration github.com/prometheus/client_golang/prometheus/internal github.com/prometheus/common/expfmt github.com/golang/protobuf/ptypes/timestamp github.com/golang/protobuf/ptypes google.golang.org/genproto/googleapis/rpc/status google.golang.org/grpc/status go.opencensus.io/plugin/ocgrpc github.com/prometheus/client_golang/prometheus github.com/prometheus/common/version github.com/prometheus/client_golang/prometheus/promhttp go get -v bufio context encoding/json errors expvar fmt github.com/golang/glog github.com/pkg/errors github.com/prometheus/client_golang/prometheus/testutil io io/ioutil math math/rand net/http net/http/httptest os os/user path path/filepath reflect regexp regexp/syntax runtime sort strconv strings sync syscall testing testing/quick time github.com/prometheus/client_golang/prometheus/testutil touch .dep-stamp echo "mtail: $(go list -f '{{if not .Standard}}{{.Dir}}{{end}}' $(go list -f '{{ join .Deps "\n" }}' cmd/mtail/main.go) | sed -e 's@$@/

.go@' | tr "\n" " " )" > .d/mtail.d GO111MODULE=on go build -ldflags "-X main.Branch=master -X main.Version=v3.0.0-rc33-1-g6128742 -X main.Revision=6128742ae88749a3933b36bd8cea7404cb957fe1" -o mtail cmd/mtail/main.go echo "mgen: $(go list -f '{{if not .Standard}}{{.Dir}}{{end}}' $(go list -f '{{ join .Deps "\n" }}' cmd/mgen/main.go) | sed -e 's@$@/.go@' | tr "\n" " " )" > .d/mgen.d GO111MODULE=on go build -ldflags "-X main.Branch=master -X main.Version=v3.0.0-rc33-1-g6128742 -X main.Revision=6128742ae88749a3933b36bd8cea7404cb957fe1" -o mgen cmd/mgen/main.go echo "mdot: $(go list -f '{{if not .Standard}}{{.Dir}}{{end}}' $(go list -f '{{ join .Deps "\n" }}' cmd/mdot/main.go) | sed -e 's@$@/*.go@' | tr "\n" " " )" > .d/mdot.d GO111MODULE=on go build -ldflags "-X main.Branch=master -X main.Version=v3.0.0-rc33-1-g6128742 -X main.Revision=6128742ae88749a3933b36bd8cea7404cb957fe1" -o mdot cmd/mdot/main.go

My GO version - go version go1.12.7 linux/amd64

My GO ENV -

GOARCH="amd64" GOBIN="" GOCACHE="/root/.cache/go-build" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="/root/go" GOPROXY="" GORACE="" GOROOT="/usr/local/go" GOTMPDIR="" GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64" GCCGO="gccgo" CC="gcc" CXX="g++" CGO_ENABLED="0" GOMOD="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build365346898=/tmp/go-build -gno-record-gcc-switches"

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/google/mtail/issues/250?email_source=notifications&email_token=AAXFX64ELVEZWUEA222U5W3QEDUA7A5CNFSM4II2N6V2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4BSBGQ#issuecomment-520298650, or mute the thread https://github.com/notifications/unsubscribe-auth/AAXFX6YQF42OTD4EPCGWIQ3QEDUA7ANCNFSM4II2N6VQ .

AATHITH commented 5 years ago

So it looks like it worked then?

no it didn't worked,

mtail --version

Command 'mtail' not found, did you mean:

command 'xtail' from deb xtail command 'mltail' from deb svtools command 'ctail' from deb byobu command 'mail' from deb mailutils command 'tmail' from deb uw-mailutils command 'rtail' from deb ruby-file-tail command 'tail' from deb coreutils

Try: apt install

jaqx0r commented 5 years ago

./mtail -version

because it's been built in the current directory.

On Mon, 26 Aug 2019 at 15:21, AATHITH notifications@github.com wrote:

So it looks like it worked then?

no it didn't worked,

mtail --version

Command 'mtail' not found, did you mean:

command 'xtail' from deb xtail command 'mltail' from deb svtools command 'ctail' from deb byobu command 'mail' from deb mailutils command 'tmail' from deb uw-mailutils command 'rtail' from deb ruby-file-tail command 'tail' from deb coreutils

Try: apt install

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/google/mtail/issues/250?email_source=notifications&email_token=AAXFX66H7YLSBZ7IZXH4D3TQGNR6HA5CNFSM4II2N6V2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5DJL2Y#issuecomment-524719595, or mute the thread https://github.com/notifications/unsubscribe-auth/AAXFX662KVLFPCPK2WT7UXDQGNR6HANCNFSM4II2N6VQ .

jaqx0r commented 5 years ago

I see where the instructions have led you astray now. This is confusing because GO changed how go get worked with Go 1.12.

Sorry about that, about to update them.