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

Command not found #37

Open
lukebrewerton opened this issue Oct 29, 2018 · 1 comment
Open

Command not found #37

lukebrewerton opened this issue Oct 29, 2018 · 1 comment

Comments

@lukebrewerton
Copy link

I have installed using go get -u github.com/remind101/assume-role

I can run it if I am in $GOBIN and run ./assume-role but just running assume-role on my shell does not work.

I am using zsh and below is my go env

GOARCH="amd64"
GOBIN="/home/user/go/bin"
GOCACHE="/home/user/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/user/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
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-build666753700=/tmp/go-build -gno-record-gcc-switches"

I get the same issue on bash too so I do not think this is a shell issue but I could be wrong.

@GrantSheehan
Copy link

You should add $GOBIN to your PATH environment variable.

In your .bashrc, add export PATH=$GOBIN:$PATH below the line where GOBIN is being exported.

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

2 participants