Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dep ensure make: dep: Command not found on Ubuntu 16.04 #52

Closed
finid opened this issue Apr 14, 2017 · 7 comments
Closed

dep ensure make: dep: Command not found on Ubuntu 16.04 #52

finid opened this issue Apr 14, 2017 · 7 comments

Comments

@finid
Copy link

finid commented Apr 14, 2017

After typing make install, I got this error:

dep ensure
make: dep: Command not found
GNUmakefile:28: recipe for target 'dep' failed
make: *** [dep] Error 127

I know makedepend is available on the server, so I tried to cheat by symlinking /usr/bin/makedepend to /usr/bin/dep. It too failed with:

go get -u github.com/golang/dep/...
dep ensure
dep: error:  [mM]akefile is not present
GNUmakefile:28: recipe for target 'dep' failed
make: *** [dep] Error 1

Not sure what else to do, so welcome any ideas.

@finid
Copy link
Author

finid commented Apr 14, 2017

Found the cause - failed to add GOPATH to PATH.

@finid finid closed this as completed Apr 14, 2017
@RonnanSouza
Copy link

RonnanSouza commented Feb 5, 2019

Found the cause - failed to add GOPATH to PATH.

Hello, I'm having the same problem of you, so what do you mean by add GOPATH to PATH?

@rakeshzingade
Copy link

install dep ref here: https://github.com/golang/dep
set GOPATH to your go installed dir say /home/myname/go then
export GOPATH=/home/myname/go

@sunidhichaudhary
Copy link

@rakeshzingade I did that but still the error continues to be bin/bash: dep: command not found

@rakeshzingade
Copy link

You may need to set PATH env to $GOPATH/bin

@barakat-abweh
Copy link

a small trick can help
ln -s /home/"your username"/go/bin/dep /usr/bin/

@HolimaX
Copy link

HolimaX commented Mar 7, 2022

a small trick can help ln -s /home/"your username"/go/bin/dep /usr/bin/

Did not help for me in CircleCi cimg/go:1.16-browsers env:

GO111MODULE=""
GOARCH="amd64"
GOBIN="/home/circleci/go/bin"
GOCACHE="/home/circleci/.cache/go-build"
GOENV="/home/circleci/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/circleci/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/circleci/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.16.15"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/circleci/go/src/github.com/<some_repo>/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build2373454162=/tmp/go-build -gno-record-gcc-switches"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants