Vote count:
0
I installed Go 1.4 in Mac OS X. Previously I had Go 1.0. I set the GOROOT and PATH as follows,
Dineshs-MacBook-Air:go-cassandra Dany$ which go
/usr/local/go/bin/go
Dineshs-MacBook-Air:go-cassandra Dany$ export GOROOT=/usr/local/go/bin/go
Dineshs-MacBook-Air:go-cassandra Dany$ export PATH=$PATH:$GOROOT/bin
Go is installed in '/usr/local/go/bin/go'. And I set the GOPATH as my project src directory. I am able to run go code inside my directory. But when I try to install gocql I am getting error.
Dineshs-MacBook-Air:go-cassandra Dany$ sudo go get http://ift.tt/1cXjEki
package http://ift.tt/1cXjEki: cannot download, $GOPATH not set. For more details see: go help gopath
Could anyone help me on this? Thank you
asked 46 secs ago
How to set GOPATH in Mac OS X 10.10
Aucun commentaire:
Enregistrer un commentaire