go-mysql-org / go-mysql-elasticsearch

Sync MySQL data into elasticsearch
MIT License
4.11k stars 799 forks source link

Cannot find package "encoding"…. #7

Open trident60 opened 9 years ago

trident60 commented 9 years ago

Hello, When I try to "make" I get the following error and not sure how to proceed (I'm not a developer - at all…lol). I do not have an "encoding" folder anywhere. Thanks for any help! Rob

root@jerSite:~/go/src/github.com/siddontang/go-mysql-elasticsearch# make godep go build -o bin/go-mysql-elasticsearch ./cmd/go-mysql-elasticsearch Godeps/_workspace/src/github.com/BurntSushi/toml/encoding_types.go:10:2: cannot find package "encoding" in any of: /usr/src/pkg/encoding (from $GOROOT) /root/go/src/github.com/siddontang/go-mysql-elasticsearch/Godeps/_workspace/src/encoding (from $GOPATH) /root/go/src/encoding godep: go exit status 1 make: *\ [build-elasticsearch] Error 1

siddontang commented 9 years ago

encoding is the standard lib in go, do you set GOROOT correctly? e.g, export GOROOT=/usr/local/go or other?