我正在尝试构建this project,我安装并配置了我的ubuntu 16.04
go version
go version go1.8.3 linux/amd64
go env输出:
go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/egmintel/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build216980961=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
但是我坚持第一次分裂:
go get -u github.com/TheThingsNetwork/packet_forwarder
我收到了这些错误:
$ go get -u github.com/TheThingsNetwork/packet_forwarder
package github.com/TheThingsNetwork/ttn/api/gateway: cannot find package "github.com/TheThingsNetwork/ttn/api/gateway" in any of:
/usr/local/go/src/github.com/TheThingsNetwork/ttn/api/gateway (from $GOROOT)
/home/egmintel/go/src/github.com/TheThingsNetwork/ttn/api/gateway (from $GOPATH)
package github.com/TheThingsNetwork/ttn/api/discovery: cannot find package "github.com/TheThingsNetwork/ttn/api/discovery" in any of:
/usr/local/go/src/github.com/TheThingsNetwork/ttn/api/discovery (from $GOROOT)
/home/egmintel/go/src/github.com/TheThingsNetwork/ttn/api/discovery (from $GOPATH)
package github.com/TheThingsNetwork/ttn/api/fields: cannot find package "github.com/TheThingsNetwork/ttn/api/fields" in any of:
/usr/local/go/src/github.com/TheThingsNetwork/ttn/api/fields (from $GOROOT)
/home/egmintel/go/src/github.com/TheThingsNetwork/ttn/api/fields (from $GOPATH)
package github.com/TheThingsNetwork/ttn/api/protocol: cannot find package "github.com/TheThingsNetwork/ttn/api/protocol" in any of:
/usr/local/go/src/github.com/TheThingsNetwork/ttn/api/protocol (from $GOROOT)
/home/egmintel/go/src/github.com/TheThingsNetwork/ttn/api/protocol (from $GOPATH)
package github.com/TheThingsNetwork/ttn/api/protocol/lorawan: cannot find package "github.com/TheThingsNetwork/ttn/api/protocol/lorawan" in any of:
/usr/local/go/src/github.com/TheThingsNetwork/ttn/api/protocol/lorawan (from $GOROOT)
/home/egmintel/go/src/github.com/TheThingsNetwork/ttn/api/protocol/lorawan (from $GOPATH)
package github.com/TheThingsNetwork/ttn/api/router: cannot find package "github.com/TheThingsNetwork/ttn/api/router" in any of:
/usr/local/go/src/github.com/TheThingsNetwork/ttn/api/router (from $GOROOT)
/home/egmintel/go/src/github.com/TheThingsNetwork/ttn/api/router (from $GOPATH)
任何想法我错过了什么?我错过了配置环境吗? 谢谢!