Comments (12)
You should set $GOPATH in your .bashrc, and add $GOPATH/bin to your PATH
from glock.
same here
from glock.
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
from glock.
Guys, this is not a glock issue. You haven't configured your Go install correctly, since $GOPATH/bin is missing from your $PATH.
from glock.
I don't think so, I have these 2 lines in my .profile
export GOPATH=$HOME/Workspace/Golang
export PATH=$PATH:$GOPATH/bin
from glock.
Still waiting for the solution...
from glock.
What's the output of echo $PATH
Where is the glock binary on your system? find / -name "glock" 2>/dev/null | grep glock
from glock.
@RYOHOI
What OS are you using?
Have you checked the $GOPATH/bin folder to see if there's a glock executable?
from glock.
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.
from glock.
from glock.
Bingo!
from glock.
基本环境安装
- apt安装
apt-get install golang git
- 查看环境变量
go env
echo $PATH
- 设置环境变量
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
from glock.
Related Issues (20)
- Speed up glock sync HOT 1
- Aliasing imports. HOT 4
- Support dependencies that aren't working directories (or clones) HOT 2
- Cosmetic inquiry: GLOCKFILE naming HOT 3
- support for single repository layouts HOT 3
- Outdated reference to godep -save=false in README.md / Overview HOT 1
- Add post-rewrite hook HOT 3
- "glock save" extremely slow on vanity import paths HOT 2
- Support for Mercurial, Bazaar, Subversion is incomplete and undocumented HOT 1
- sync occasionally fails with a "cannot find package" error HOT 6
- Consider adding GO15VENDOREXPERIMENT support HOT 11
- `glock save` gets confused by build tags HOT 1
- `glock sync` from inside git-hook can fail due to git env vars HOT 3
- glock: command not found HOT 8
- Dependency Issue With googlemaps.github.io/maps
- Doesn't work offline
- Please add a LICENSE file HOT 1
- `glock save` broken by #33
- Glock sync fails when checking out refs that only exist on certain tags
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glock.