2017-09-10 9 views
0

gopathの設定に問題がありました。私はパスの問題を解決することができました。しかし、このエラーが発生しました...依存パッケージをインストールしてください。

[[email protected] mysqlbeat]# go get github.com/adibendahan/mysqlbeat 

# github.com/adibendahan/mysqlbeat/beater 
/root/go/src/src/github.com/adibendahan/mysqlbeat/beater/mysqlbeat.go:289:7: b.Events undefined (type *beat.Beat has no field or method Events) 
/root/go/src/src/github.com/adibendahan/mysqlbeat/beater/mysqlbeat.go:303:7: b.Events undefined (type *beat.Beat has no field or method Events) 
/root/go/src/src/github.com/adibendahan/mysqlbeat/beater/mysqlbeat.go:326:5: b.Events undefined (type *beat.Beat has no field or method Events) 

すべての依存関係と一緒に正しくパッケージをインストールするにはどうしたらいいですか?


更新:

は、私はパッケージをダウンロードしてit.Differentエラーにこの時間を実行しようとした...

[[email protected] mysqlbeat]# make 
go build 
can't load package: /root/go/src/src/github.com/adibendahan/mysqlbeat/main.go:8:2: non-standard import "github.com/adibendahan/mysqlbeat/beater" in standard package "src/github.com/adibendahan/mysqlbeat" 
make: *** [build] Error 1 

答えて

0

mysqlbeatREADME.mdHow to Buildセクションをご覧ください。

mysqlbeatは、依存関係管理のためにGlideを使用します。 Check this for installing glide

グライドをインストールした後、 mysqlbeatリポジトリのクローンを作成し、実行します。

$ glide update --no-recursive 
$ make 

それでも、go getでこのリポジトリをインポートレポのクローンを作成し、そのルートディレクトリからgo get ./...を実行したい場合。

関連する問題