cleesmith / unifiedbeat

Unifiedbeat reads records from Unified2 binary files generated by network intrusion detection software and indexes the records in Elasticsearch.
MIT License
30 stars 14 forks source link

Can't compile/install #6

Closed urvile closed 8 years ago

urvile commented 8 years ago

src/unifiedbeat/main.go:40: cannot use unifiedbeat.New() (type *unifiedbeat.Unifiedbeat) as type "unifiedbeat/vendor/github.com/elastic/beats/libbeat/beat".Beater in argument to "unifiedbeat/vendor/github.com/elastic/beats/libbeat/beat".Run: *unifiedbeat.Unifiedbeat does not implement "unifiedbeat/vendor/github.com/elastic/beats/libbeat/beat".Beater (wrong type for Cleanup method) have Cleanup(*"github.com/cleesmith/unifiedbeat/vendor/github.com/elastic/beats/libbeat/beat".Beat) error want Cleanup(*"unifiedbeat/vendor/github.com/elastic/beats/libbeat/beat".Beat) error make: *** [install] Error 2 Had a dickens of a time getting the dependencies right.

cleesmith commented 8 years ago

If you are new to Go, there is a pre-compiled binary for Linux 64bit platforms ... just click on releases.

To compile correctly with the known/tested dependencies in the vendor folder:

Hope that helps.

cleesmith commented 8 years ago

Retested compiling on:

$ uname -a
Linux box 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.4 LTS
Release:    14.04
Codename:   trusty

and the process described works.