Giter Site home page Giter Site logo

Unable to install glock about glock HOT 12 CLOSED

robfig avatar robfig commented on August 23, 2024
Unable to install glock

from glock.

Comments (12)

njaremko avatar njaremko commented on August 23, 2024 3

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

from glock.

lipsumar avatar lipsumar commented on August 23, 2024

same here

from glock.

theparadoxofparadox avatar theparadoxofparadox commented on August 23, 2024

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.

egtann avatar egtann commented on August 23, 2024

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.

x-tropy avatar x-tropy commented on August 23, 2024

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.

x-tropy avatar x-tropy commented on August 23, 2024

Still waiting for the solution...

from glock.

egtann avatar egtann commented on August 23, 2024

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.

njaremko avatar njaremko commented on August 23, 2024

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

from glock.

x-tropy avatar x-tropy commented on August 23, 2024

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.

x-tropy avatar x-tropy commented on August 23, 2024

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

from glock.

robfig avatar robfig commented on August 23, 2024

Bingo!

from glock.

tekintian avatar tekintian commented on August 23, 2024

基本环境安装

  • apt安装
apt-get install golang git
  • 查看环境变量

go env
echo $PATH

  • 设置环境变量
    export GOPATH=$HOME/go
    export PATH=$PATH:$GOPATH/bin

from glock.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.