Closed x-tropy closed 8 years ago
same here
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
Guys, this is not a glock issue. You haven't configured your Go install correctly, since $GOPATH/bin is missing from your $PATH.
I don't think so, I have these 2 lines in my .profile
export GOPATH=$HOME/Workspace/Golang
export PATH=$PATH:$GOPATH/bin
Still waiting for the solution...
What's the output of echo $PATH
Where is the glock binary on your system? find / -name "glock" 2>/dev/null | grep glock
@RYOHOI What OS are you using? Have you checked the $GOPATH/bin folder to see if there's a glock executable?
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.
You should set $GOPATH in your .bashrc, and add $GOPATH/bin to your PATH
Bingo!
apt安装
apt-get install golang git
查看环境变量
go env echo $PATH
After doing this:
go get github.com/robfig/glock
Terminal still says command not found.
I'm trying to install Abot.