robfig / glock

MIT License
230 stars 27 forks source link

Unable to install glock #32

Closed x-tropy closed 8 years ago

x-tropy commented 8 years ago

After doing this: go get github.com/robfig/glock

Terminal still says command not found.

I'm trying to install Abot.

lipsumar commented 8 years ago

same here

theparadoxofparadox commented 8 years ago

I am having this problem also! I have been able to fix all other errors however glock must not be installing properly because after this: go get github.com/robfig/glock I still get the error saying that command is not found. Please help! I think perhaps it could be an issue with glock not being in the path perhaps, I am unsure

egtann commented 8 years ago

Guys, this is not a glock issue. You haven't configured your Go install correctly, since $GOPATH/bin is missing from your $PATH.

x-tropy commented 8 years ago

I don't think so, I have these 2 lines in my .profile

export GOPATH=$HOME/Workspace/Golang
export PATH=$PATH:$GOPATH/bin
x-tropy commented 8 years ago

Still waiting for the solution...

egtann commented 8 years ago

What's the output of echo $PATH

Where is the glock binary on your system? find / -name "glock" 2>/dev/null | grep glock

njaremko commented 8 years ago

@RYOHOI What OS are you using? Have you checked the $GOPATH/bin folder to see if there's a glock executable?

x-tropy commented 8 years ago

echo $PATH output:

/opt/local/bin:/opt/local/sbin:/Users/Rio/.rvm/gems/ruby-2.1.1/bin:/Users/Rio/.rvm/gems/ruby-2.1.1@global/bin:/Users/Rio/.rvm/rubies/ruby-2.1.1/bin:/usr/local/bin:/Library/Frameworks/Python.framework/Versions/3.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/aria2/bin:/usr/local/git/bin:/usr/local/go/bin:/usr/texbin:/Users/Rio/.rvm/bin:/Users/Rio/.rvm/bin:/Users/Rio/Workspace/bashScripting/bin:/Users/Rio/Workspace/Golang/bin

I'm on latest Yosemite.

x-tropy commented 8 years ago

screen shot 2016-04-20 at 4 13 31 pm

njaremko commented 8 years ago

You should set $GOPATH in your .bashrc, and add $GOPATH/bin to your PATH

robfig commented 8 years ago

Bingo!

tekintian commented 5 years ago

基本环境安装

go env echo $PATH