[go-nuts] Need help to launch hello.go

2019-04-28 Thread Avetis Sargsian
Hi everyone, as you can see from the topic I am new to Go

I follow the instruction on this page 
https://golang.org/doc/code.html#Workspaces to launch hello.go and face 
some difficulties

So, I downloded and installed  MSI file  foe Windows

Here is my Go version:
go version go1.12.4 windows/amd64

my go env:
set GOARCH=amd64
set GOBIN=F:\GoWorckspace\bin
set GOCACHE=C:\Users\Avetis\AppData\Local\go-build
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=F:\GoWorckspace
set GOPROXY=
set GORACE=
set GOROOT=E:\Go
set GOTMPDIR=
set GOTOOLDIR=E:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments 
-fmessage-length=0 
-fdebug-prefix-map=C:\Users\Avetis\AppData\Local\Temp\go-build714242958=/tmp/go-build
 
-gno-record-gcc-switches

GOPATH dir structure is:
-bin/
-pkg/
-src/
 -hello/
hello.go


hello.go content:

  package main

  import (
  "fmt"
  )

  func main() {
  fmt.Println("Hello World!")
  }

when I am trying do go install I get this arror:
 F:\GoWorckspace\src\hello> go install hello.go
open 
C:\Users\Avetis\AppData\Local\Temp\go-build786217674\b001\exe\a.out.exe: 
The system cannot find the file specified.

I have tried different options, but all of them lead to same error:

PS F:\GoWorckspace\src> go install .\hello\hello.go
open 
C:\Users\Avetis\AppData\Local\Temp\go-build220985190\b001\exe\a.out.exe: 
The system cannot find the file specified.
PS F:\GoWorckspace\src> go install .\hello
open 
C:\Users\Avetis\AppData\Local\Temp\go-build247169354\b001\exe\a.out.exe: 
The system cannot find the file specified.
PS F:\GoWorckspace\src> go install hello
open 
C:\Users\Avetis\AppData\Local\Temp\go-build365645162\b001\exe\a.out.exe: 
The system cannot find the file specified.
PS F:\GoWorckspace\src> go build .\hello\hello.go
open 
C:\Users\Avetis\AppData\Local\Temp\go-build274908638\b001\exe\a.out.exe: 
The system cannot find the file specified.


I will appreciate any help on this, thanks!

-- 
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.


[go-nuts] Re: Need help to launch hello.go

2019-04-29 Thread Avetis Sargsian
Unfortunately changin GOCACHE variable didn't help
 

> PS F:\GoWorckspace\src\hello> go env
> set GOARCH=amd64
> set GOBIN=F:\GoWorckspace\bin
> set GOCACHE=F:\temp
> set GOEXE=.exe
> set GOFLAGS=
> set GOHOSTARCH=amd64
> set GOHOSTOS=windows
> set GOOS=windows
> set GOPATH=F:\GoWorckspace
> set GOPROXY=
> set GORACE=
> set GOROOT=C:\Go
> set GOTMPDIR=
> set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
> set GCCGO=gccgo
> set CC=gcc
> set CXX=g++
> set CGO_ENABLED=1
> set GOMOD=
> set CGO_CFLAGS=-g -O2
> set CGO_CPPFLAGS=
> set CGO_CXXFLAGS=-g -O2
> set CGO_FFLAGS=-g -O2
> set CGO_LDFLAGS=-g -O2
> set PKG_CONFIG=pkg-config
> set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments 
> -fmessage-length=0 
> -fdebug-prefix-map=C:\Users\Avetis\AppData\Local\Temp\go-build171002686=/tmp/go-build
>  
> -gno-record-gcc-switches
>
 

> PS F:\GoWorckspace\src\hello> go install
> open 
> C:\Users\Avetis\AppData\Local\Temp\go-build231890486\b001\exe\a.out.exe: 
> The system cannot find the file specified.
>

-- 
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.


[go-nuts] Re: Need help to launch hello.go

2019-04-29 Thread Avetis Sargsian

>
> I set GOTMPDIR to E:\temp folder
>
and here is the result 

PS F:\GoWorckspace\src\hello> go install
open E:\temp\go-build447177998\b001\exe\a.out.exe: The system cannot find 
the file specified.

PS F:\GoWorckspace\src\hello> go build
open E:\temp\go-build140959642\b001\exe\a.out.exe: The system cannot find 
the file specified. 

PS F:\GoWorckspace\src\hello> go run hello.go
open E:\temp\go-build609689226\b001\exe\hello.exe: The system cannot find 
the file specified.
 

-- 
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.


[go-nuts] Re: Need help to launch hello.go

2019-04-30 Thread Avetis Sargsian
GOPATH = F:\GoWorckspace
GOPATH dir structure is:
-bin/
-pkg/
-src/
 -hello/
hello.go

This is my home computer and cause is not an antivirus programm, I tried to 
reapit everising with it uninstalled.
And here is resul running build command with -work argument

PS F:\GoWorckspace\src\hello> go build -work
WORK=E:\temp\go-build828919622
open E:\temp\go-build828919622\b001\exe\a.out.exe: The system cannot find 
the file specified.

-- 
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.


Re: [go-nuts] Re: Need help to launch hello.go

2019-04-30 Thread Avetis Sargsian
Ok there is one file in
E:\temp\go-build828919622\b001\importcfg.link
end is empty in
E:\temp\go-build828919622\b001\exe

this is content of importcfg.link
packagefile
hello=C:\Users\Avetis\AppData\Local\go-build\ae\aecfeab49f117df031d74e0ca3aad783ba25f0524b981cbb74a2db671205fadd-d
packagefile fmt=C:\Go\pkg\windows_amd64\fmt.a
packagefile runtime=C:\Go\pkg\windows_amd64\runtime.a
packagefile errors=C:\Go\pkg\windows_amd64\errors.a
packagefile internal/fmtsort=C:\Go\pkg\windows_amd64\internal\fmtsort.a
packagefile io=C:\Go\pkg\windows_amd64\io.a
packagefile math=C:\Go\pkg\windows_amd64\math.a
packagefile os=C:\Go\pkg\windows_amd64\os.a
packagefile reflect=C:\Go\pkg\windows_amd64\reflect.a
packagefile strconv=C:\Go\pkg\windows_amd64\strconv.a
packagefile sync=C:\Go\pkg\windows_amd64\sync.a
packagefile unicode/utf8=C:\Go\pkg\windows_amd64\unicode\utf8.a
packagefile internal/bytealg=C:\Go\pkg\windows_amd64\internal\bytealg.a
packagefile internal/cpu=C:\Go\pkg\windows_amd64\internal\cpu.a
packagefile
runtime/internal/atomic=C:\Go\pkg\windows_amd64\runtime\internal\atomic.a
packagefile
runtime/internal/math=C:\Go\pkg\windows_amd64\runtime\internal\math.a
packagefile
runtime/internal/sys=C:\Go\pkg\windows_amd64\runtime\internal\sys.a
packagefile sort=C:\Go\pkg\windows_amd64\sort.a
packagefile sync/atomic=C:\Go\pkg\windows_amd64\sync\atomic.a
packagefile math/bits=C:\Go\pkg\windows_amd64\math\bits.a
packagefile internal/poll=C:\Go\pkg\windows_amd64\internal\poll.a
packagefile
internal/syscall/windows=C:\Go\pkg\windows_amd64\internal\syscall\windows.a
packagefile internal/testlog=C:\Go\pkg\windows_amd64\internal\testlog.a
packagefile syscall=C:\Go\pkg\windows_amd64\syscall.a
packagefile time=C:\Go\pkg\windows_amd64\time.a
packagefile unicode/utf16=C:\Go\pkg\windows_amd64\unicode\utf16.a
packagefile unicode=C:\Go\pkg\windows_amd64\unicode.a
packagefile internal/race=C:\Go\pkg\windows_amd64\internal\race.a
packagefile
internal/syscall/windows/sysdll=C:\Go\pkg\windows_amd64\internal\syscall\windows\sysdll.a
packagefile
internal/syscall/windows/registry=C:\Go\pkg\windows_amd64\internal\syscall\windows\registry.a

вт, 30 апр. 2019 г. в 18:57, andrey mirtchovski :

> > PS F:\GoWorckspace\src\hello> go build -work
> > WORK=E:\temp\go-build828919622
> > open E:\temp\go-build828919622\b001\exe\a.out.exe: The system cannot
> find the file specified.
>
> once you have done this you should be able to cd to
> E:\temp\go-build828919622 and look around to see if any files have
> been created, including b001\exe\a.out.exe.
>

-- 
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.


[go-nuts] Re: Need help to launch hello.go

2019-05-01 Thread Avetis Sargsian

>
> Anyway, thanks for try to help! 
>
Actually I was able to instal Go on my mac computer, it took only 10 
minutes))), so I will continue to study there ;)

-- 
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.