Glide: Fail to install Glide: $LGOBIN issue

Created on 9 Nov 2017  路  14Comments  路  Source: Masterminds/glide

$curl https://glide.sh/get | sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  4712  100  4712    0     0   3822      0  0:00:01  0:00:01 --:--:--  3824
ARCH=amd64
OS=linux
Using curl as download tool
Getting https://glide.sh/version
TAG=v0.13.1
GLIDE_DIST=glide-v0.13.1-linux-amd64.tar.gz
Downloading https://github.com/Masterminds/glide/releases/download/v0.13.1/glide-v0.13.1-linux-amd64.tar.gz
glide not found. Did you add $LGOBIN to your $PATH?
Fail to install glide

Most helpful comment

putting it together, you need to add the following to your ~/.bash_profile or ~/.zshrc if you use zshell

export GOPATH=$(go env GOPATH)
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOBIN

All 14 comments

+1

Facing the same issue.. Can someone kindly provide a fix for it?

Seems set $GOBIN will resolve this problem

@hitzzc What should I set $GOBIN to?

@DSofter $GOBIN=$GOPATH/bin

+1 $GOBIN is set correctly with
export GOBIN=$GOPATH/bin
And I do get the same error message as mentioned above.

I'm still facing the same issue here. Any solution?

I found a solution though I wouldn't recommend it. I just copied the files in go-workspace/bin to user/local/go/bin

I used this:
export PATH=$PATH:$GOPATH/bin

putting it together, you need to add the following to your ~/.bash_profile or ~/.zshrc if you use zshell

export GOPATH=$(go env GOPATH)
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOBIN

putting it together, you need to add the following to your ~/.bash_profile or ~/.zshrc if you use zshell

export GOPATH=$(go env GOPATH)
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOBIN

@DavidGereb You are a rockstar! That saved me a lots of time!

This issue could be closed.

It perfectly works fine once you set your GOBIN and PATH variable correctly.

bash export GOPATH=$HOME/go export GOBIN=$GOPATH/bin export PATH=$PATH:$GOBIN

export GOROOT=/usr/local/go
export GOBIN=$GOROOT/bin

putting it together, you need to add the following to your ~/.bash_profile or ~/.zshrc if you use zshell

export GOPATH=$(go env GOPATH)
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOBIN

Thanks for this... Wow

Was this page helpful?
0 / 5 - 0 ratings