constabulary / gb

gb, the project based build tool for Go
https://getgb.io/
MIT License
2.15k stars 150 forks source link

gb is installed using go, but when i hit gb command, "command not found" error coming #704

Closed jibinpjohn closed 7 years ago

jibinpjohn commented 7 years ago

Hello,

I have installed the gb using the go tool. However when I hit the gb command, "command not found" error coming. Should i set any PATH variables ?

Here are the commands, i have executed.

root@DAEDALUS-STUD-U:~# go get github.com/constabulary/gb/... root@DAEDALUS-STUD-U:~# ls Bilder Downloads Musik Schreibtisch Vorlagen Dokumente go Öffentlich Videos root@DAEDALUS-STUD-U:~# gb gb: Befehl nicht gefunden. root@DAEDALUS-STUD-U:~#

davecheney commented 7 years ago

Is $GOPATH/bin in your $PATH?

davecheney commented 7 years ago

Specially add /root/go/bin to your $PATH

On 10 Apr 2017, at 21:13, jibinpjohn notifications@github.com wrote:

Hello,

I have installed the gb using the go tool. However when I hit the gb command, "command not found" error coming. Should i set any PATH variables ?

Here are the commands, i have executed.

root@DAEDALUS-STUD-U:# go get github.com/constabulary/gb/... root@DAEDALUS-STUD-U:# ls Bilder Downloads Musik Schreibtisch Vorlagen Dokumente go Öffentlich Videos root@DAEDALUS-STUD-U:# gb gb: Befehl nicht gefunden. root@DAEDALUS-STUD-U:#

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

jibinpjohn commented 7 years ago

Many thanks,It worked.

root@DAEDALUS-STUD-U:~/go/bin# export PATH=$PATH:/root/go/bin root@DAEDALUS-STUD-U:~/go/bin# echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/bin:/root/go/bin root@DAEDALUS-STUD-U:~/go/bin# gb gb, a project based build tool for the Go programming language.

Usage:

    gb command [arguments]

Can you close the issue ?