"godep go install", NOT working

Hello All,
In the github page of swarm (GitHub - docker-archive/classicswarm: Swarm Classic: a container clustering system. Not to be confused with Docker Swarm which is at https://github.com/docker/swarmkit), in “Readme.md” file, it is mentioned that to install swarm the command is “godep go install”.
When I tried the command “godep go install”, I got the following output:

No command 'godep' found, did you mean:
 Command 'godef' from package 'emboss' (universe)
godep: command not found

I have tried installing “godep” from “GitHub - tools/godep: dependency tool for go” using following command

go get GitHub - tools/godep: dependency tool for go
After installing I got no error. so it seems it is installed correctly.
When I tried executing the same command
godep go install
I got the same output.
No command ‘godep’ found, did you mean:
Command ‘godef’ from package ‘emboss’ (universe)
godep: command not found

Please help me resolving this issue.

Without using godep I tried “go install”, but I got following ERROR:

cli/cli.go:8:2: cannot find package “GitHub - sirupsen/logrus: Structured, pluggable logging for Go.” in any of:
/usr/lib/go/src/pkg/github.com/Sirupsen/logrus (from $GOROOT)
/home/funlab/gocode/src/github.com/Sirupsen/logrus (from $GOPATH)
cli/cli.go:9:2: cannot find package “GitHub - urfave/cli: A simple, fast, and fun package for building command line apps in Go” in any of:
/usr/lib/go/src/pkg/github.com/codegangsta/cli (from $GOROOT)
/home/funlab/gocode/src/github.com/codegangsta/cli (from $GOPATH)
api/flusher.go:8:2: cannot find package “github.com/docker/docker/pkg/ioutils” in any of:
/usr/lib/go/src/pkg/github.com/docker/docker/pkg/ioutils (from $GOROOT)
/home/funlab/gocode/src/github.com/docker/docker/pkg/ioutils (from $GOPATH)
api/handlers.go:17:2: cannot find package “github.com/docker/docker/pkg/parsers/filters” in any of:
/usr/lib/go/src/pkg/github.com/docker/docker/pkg/parsers/filters (from $GOROOT)
/home/funlab/gocode/src/github.com/docker/docker/pkg/parsers/filters (from $GOPATH)
cluster/container.go:6:2: cannot find package “github.com/docker/docker/pkg/stringid” in any of:
/usr/lib/go/src/pkg/github.com/docker/docker/pkg/stringid (from $GOROOT)
/home/funlab/gocode/src/github.com/docker/docker/pkg/stringid (from $GOPATH)
cluster/mesos/utils.go:7:2: cannot find package “github.com/docker/docker/pkg/units” in any of:
/usr/lib/go/src/pkg/github.com/docker/docker/pkg/units (from $GOROOT)
/home/funlab/gocode/src/github.com/docker/docker/pkg/units (from $GOPATH)
cluster/engine.go:15:2: cannot find package “github.com/docker/docker/pkg/version” in any of:
/usr/lib/go/src/pkg/github.com/docker/docker/pkg/version (from $GOROOT)
/home/funlab/gocode/src/github.com/docker/docker/pkg/version (from $GOPATH)
discovery/kv/kv.go:10:2: cannot find package “GitHub - docker/libkv: Distributed key/value store abstraction library” in any of:
/usr/lib/go/src/pkg/github.com/docker/libkv (from $GOROOT)
/home/funlab/gocode/src/github.com/docker/libkv (from $GOPATH)
discovery/kv/kv.go:11:2: cannot find package “github.com/docker/libkv/store” in any of:
/usr/lib/go/src/pkg/github.com/docker/libkv/store (from $GOROOT)
/home/funlab/gocode/src/github.com/docker/libkv/store (from $GOPATH)
cluster/mesos/cluster.go:21:2: cannot find package “github.com/gogo/protobuf/proto” in any of:
/usr/lib/go/src/pkg/github.com/gogo/protobuf/proto (from $GOROOT)
/home/funlab/gocode/src/github.com/gogo/protobuf/proto (from $GOPATH)
api/handlers.go:20:2: cannot find package “GitHub - gorilla/mux: Package gorilla/mux is a powerful HTTP router and URL matcher for building Go web servers with 🦍” in any of:
/usr/lib/go/src/pkg/github.com/gorilla/mux (from $GOROOT)
/home/funlab/gocode/src/github.com/gorilla/mux (from $GOPATH)
cluster/mesos/cluster.go:22:2: cannot find package “github.com/mesos/mesos-go/mesosproto” in any of:
/usr/lib/go/src/pkg/github.com/mesos/mesos-go/mesosproto (from $GOROOT)
/home/funlab/gocode/src/github.com/mesos/mesos-go/mesosproto (from $GOPATH)
cluster/mesos/task.go:14:2: cannot find package “github.com/mesos/mesos-go/mesosutil” in any of:
/usr/lib/go/src/pkg/github.com/mesos/mesos-go/mesosutil (from $GOROOT)
/home/funlab/gocode/src/github.com/mesos/mesos-go/mesosutil (from $GOPATH)
cluster/mesos/cluster.go:23:2: cannot find package “github.com/mesos/mesos-go/scheduler” in any of:
/usr/lib/go/src/pkg/github.com/mesos/mesos-go/scheduler (from $GOROOT)
/home/funlab/gocode/src/github.com/mesos/mesos-go/scheduler (from $GOPATH)
cluster/cluster.go:6:2: cannot find package “GitHub - samalba/dockerclient: Docker client library in Go” in any of:
/usr/lib/go/src/pkg/github.com/samalba/dockerclient (from $GOROOT)
/home/funlab/gocode/src/github.com/samalba/dockerclient (from $GOPATH)

After I search for path mentioned in GOROOT I found “github.com” directory and its sub-directories are NOT present in “/usr/lib/go/src/pkg/”

Please help what should I do next.
-Thank you

1 Like

Greetings,

I think you have not set GOBIN?

export GOBIN=$GOPATH/bin
export PATH=$GOPATH:$GOBIN:$PATH
1 Like

Hi Jeanepaul,
Thank you for your reply. Its working now.

Thank you