I am unable to install docker swarm on my Ubuntu 14.04 system. I followed the instruction from the github page https://github.com/docker/swarm
$ mkdir -p $GOPATH/src/github.com/docker/
$ cd $GOPATH/src/github.com/docker/
$ git clone https://github.com/docker/swarm
$ cd swarm
$ $GOPATH/bin/godep go install .
I have golang and godep installed, and the $GOPATH set to a local directory. However, when i run the commands, all but the last $GOPATH/bin/godep go install .
doesn't work.
It throws this error and exits with status 2
# github.com/samalba/dockerclient
Godeps/_workspace/src/github.com/samalba/dockerclient/dockerclient.go:258: syntax error: unexpected range, expecting {
Godeps/_workspace/src/github.com/samalba/dockerclient/dockerclient.go:258: missing statement after label
Godeps/_workspace/src/github.com/samalba/dockerclient/dockerclient.go:261: syntax error: unexpected case, expecting semicolon or newline or }
Godeps/_workspace/src/github.com/samalba/dockerclient/dockerclient.go:267: syntax error: argument to go/defer must be function call
Godeps/_workspace/src/github.com/samalba/dockerclient/dockerclient.go:270: syntax error: unexpected }
Godeps/_workspace/src/github.com/samalba/dockerclient/dockerclient.go:272: non-declaration statement outside function body
Godeps/_workspace/src/github.com/samalba/dockerclient/dockerclient.go:273: syntax error: unexpected }
#github.com/mesos/mesos-go/detector
Godeps/_workspace/src/github.com/mesos/mesos-go/detector/standalone.go:73: unknown http.Client field 'Timeout' in struct literal
#github.com/docker/libkv/store/etcd
Godeps/_workspace/src/github.com/docker/libkv/store/etcd/etcd.go:83: unknown net.Dialer field 'KeepAlive' in struct literal
Godeps/_workspace/src/github.com/docker/libkv/store/etcd/etcd.go:85: unknown http.Transport field 'TLSHandshakeTimeout' in struct literal
godep: go exit status 2
Is there something that I left out ? An environment variable that wasnt initialized or some package that is required ?