Coder Social home page Coder Social logo

Comments (10)

stevesui avatar stevesui commented on July 22, 2024

I tried to use go install command and got the following error:
go install

github.com/christiangalsterer/httpbeat/beat

beat/httpbeat.go:34: b.Events undefined (type *beat.Beat has no field or method Events)

Please advise on how to resolve the issue.

Thanks.

from httpbeat.

jebbenbow avatar jebbenbow commented on July 22, 2024

Same error here when attempting to build on windows.

# github.com/christiangalsterer/httpbeat/beat
beat\httpbeat.go:34: b.events undefined (type *beat.Beat has no field or method events)

from httpbeat.

rickmuca avatar rickmuca commented on July 22, 2024

I had the same problem. To solve this quickly, you have to go to the beats library (should be downloaded in \src\github.com\elastic\beats) and checkout to v.1.2.0 tag.

from httpbeat.

rkmresh avatar rkmresh commented on July 22, 2024

I get following error can someone help me please?
godep: [WARNING]: godep should only be used inside a valid go package directory and
godep: [WARNING]: may not function correctly. You are probably outside of your $GOPATH.
godep: [WARNING]: Current Directory: ../Tools/httpbeat-master
godep: [WARNING]: $GOPATH: ../Tools/httpbeat-master
godep: WARNING: Go version (go1.6) & $GO15VENDOREXPERIMENT= wants to enable the vendor experiment, but disabling because a Godep workspace (Godeps/_workspace) exists
main.go:5:2: cannot find package "github.com/christiangalsterer/httpbeat/beat" in any of:
/usr/local/go/src/github.com/christiangalsterer/httpbeat/beat (from $GOROOT)
../Tools/httpbeat-master/Godeps/_workspace/src/github.com/christiangalsterer/httpbeat/beat (from $GOPATH)
.../Tools/httpbeat-master/src/github.com/christiangalsterer/httpbeat/beat
godep: go exit status 1
make: *** [httpbeat] Error 1

from httpbeat.

christiangalsterer avatar christiangalsterer commented on July 22, 2024

Not sure if this makes a difference but it seems that you are using Go 1.6. I used 1.5 so far make this makes a difference.

Can you also check that your GOPATH env variable is set correctly? I have set it to the parent directory of all my Go projects.

from httpbeat.

ruflin avatar ruflin commented on July 22, 2024

Could it be that this is related to different versions of libbeat used? Golang 1.6 as GOVENDOREXPERIMENT enabled by default and we use it in libbeat.

from httpbeat.

christiangalsterer avatar christiangalsterer commented on July 22, 2024

I think so too.
I will update a new version soon, using Glide for better dependency management/version handling.

from httpbeat.

christiangalsterer avatar christiangalsterer commented on July 22, 2024

Version 1.2.0 now available using glide

from httpbeat.

yuhangOstorage avatar yuhangOstorage commented on July 22, 2024

Thanks @christiangalsterer
your work helps me a lot, while I was trying to use the httpbeat. First I install gvm,then I install golang1.4 and golang1.6.3,then glide,then I cd $GOROOT/src and I git clone httpbeat,after I make httpbeat ,these errors appears, can you help me? thanks
main.go:5:2: cannot find package "github.com/christiangalsterer/httpbeat/beat" in any of:
/home/ubuntu/.gvm/gos/go1.6.3/src/httpbeat/vendor/github.com/christiangalsterer/httpbeat/beat (vendor tree)
/home/ubuntu/.gvm/gos/go1.6.3/src/vendor/github.com/christiangalsterer/httpbeat/beat
/home/ubuntu/.gvm/gos/go1.6.3/src/github.com/christiangalsterer/httpbeat/beat (from $GOROOT)
/home/ubuntu/.gvm/pkgsets/go1.6.3/global/src/github.com/christiangalsterer/httpbeat/beat (from $GOPATH)
make: *** [httpbeat] Error 1

from httpbeat.

christiangalsterer avatar christiangalsterer commented on July 22, 2024

Where is your $GOPATH variable pointing to? It should point to the root of all your go projects.

from httpbeat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.