shazow / ssh-chat

Chat over SSH.
https://shazow.net/posts/ssh-how-does-it-even/
MIT License
5.58k stars 407 forks source link

$GOPATH not set. #143

Closed mi12092 closed 8 years ago

mi12092 commented 8 years ago

I am not getting this with GOPATH and GOROOT settings. Tried from instructions i have found that said to solve this problem, but no luck. I do not know where to download ssh-chat and where to install go. When run sudo make build I get:

go get ./... package github.com/alexcesaro/log: cannot download, $GOPATH not set. For more details see: go help gopath package github.com/alexcesaro/log/golog: cannot download, $GOPATH not set. For more details see: go help gopath package github.com/shazow/rateio: cannot download, $GOPATH not set. For more details see: go help gopath package github.com/shazow/ssh-chat/chat: cannot download, $GOPATH not set. For more details see: go help gopath package github.com/shazow/ssh-chat/chat/message: cannot download, $GOPATH not set. For more details see: go help gopath package github.com/shazow/ssh-chat/sshd: cannot download, $GOPATH not set. For more details see: go help gopath package golang.org/x/crypto/ssh: cannot download, $GOPATH not set. For more details see: go help gopath package github.com/jessevdk/go-flags: cannot download, $GOPATH not set. For more details see: go help gopath package github.com/mewbak/gopass: cannot download, $GOPATH not set. For more details see: go help gopath package github.com/shazow/ssh-chat: cannot download, $GOPATH not set. For more details see: go help gopath package github.com/alexcesaro/log/buflog: cannot download, $GOPATH not set. For more details see: go help gopath package golang.org/x/crypto/ssh/terminal: cannot download, $GOPATH not set. For more details see: go help gopath package golang.org/x/net/context: cannot download, $GOPATH not set. For more details see: go help gopath package golang.org/x/crypto/blowfish: cannot download, $GOPATH not set. For more details see: go help gopath package golang.org/x/crypto/ed25519/internal/edwards25519: cannot download, $GOPATH not set. For more details see: go help gopath package golang.org/x/crypto/curve25519: cannot download, $GOPATH not set. For more details see: go help gopath package golang.org/x/crypto/nacl/secretbox: cannot download, $GOPATH not set. For more details see: go help gopath package golang.org/x/crypto/salsa20/salsa: cannot download, $GOPATH not set. For more details see: go help gopath package golang.org/x/crypto/poly1305: cannot download, $GOPATH not set. For more details see: go help gopath package golang.org/x/crypto/openpgp/armor: cannot download, $GOPATH not set. For more details see: go help gopath package golang.org/x/crypto/openpgp/errors: cannot download, $GOPATH not set. For more details see: go help gopath package golang.org/x/crypto/openpgp/packet: cannot download, $GOPATH not set. For more details see: go help gopath package golang.org/x/crypto/openpgp/s2k: cannot download, $GOPATH not set. For more details see: go help gopath package golang.org/x/crypto/cast5: cannot download, $GOPATH not set. For more details see: go help gopath package golang.org/x/crypto/openpgp/elgamal: cannot download, $GOPATH not set. For more details see: go help gopath package golang.org/x/crypto/pkcs12/internal/rc2: cannot download, $GOPATH not set. For more details see: go help gopath package golang.org/x/crypto/pbkdf2: cannot download, $GOPATH not set. For more details see: go help gopath package golang.org/x/crypto/ed25519: cannot download, $GOPATH not set. For more details see: go help gopath make: *\ [deps] Error 1

shazow commented 8 years ago

Have you tried setting your GOPATH environment variable? :)

Some instructions here: https://golang.org/doc/install#testing

Ideally we'll be providing binaries so you don't need to build it from scratch, but that's not done yet. Sorry.

mi12092 commented 8 years ago

Ok. but what is main point behind GOPATH, once I installed go. What I do need to do, change GOPATH to point to directory where go is installed or where ssh-chat is downloaded?

shazow commented 8 years ago

See the link I shared. It's Go's "workspace", it's where it will download the dependencies into, build/compile, etc.

mi12092 commented 8 years ago

Ok thanks. I will try that tutorial.