follow the procedure of installing go in linux. set the following in .bashrc of your home directory at the end:
export PATH=$PATH:/usr/local/go/bin export PATH=$PATH:$GOPATH/bin worked for me just fine! On Wednesday, October 11, 2017 at 8:04:28 AM UTC+3, Pat Farrell wrote: > > I've installed the go 1.9 binary distribution on my windows 10 laptop. > I just let the install do the defaults. (in addition to learning go, I'm > trying to see if I can live with > bash under Windows, or if I have to reboot to a linux distro to avoid > going crazy, that is a separate topic) > > in the cmd shell > 'go build' works, but creates a file go.exe that when run, displays hello > world > it does not create the expected hello.exe > > in the bash shell, 'go build' does not work, it whines that 'go' is not a > program > > The program 'go' is currently not installed. You can install it by typing: > sudo apt-get install gccgo-go > > > > but 'go.exe build' does create a local go.exe which executes and displays > the expected hello world. > > Which raises a couple of questions: > > 1) is the standard documentation wrong/out of date? > 2) how do I get the go build process to create a hello.exe rather than > go.exe? > 3) how do I get the bash shell to let me just type 'go build' like we all > want? > > > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.