G
G
Good Man2017-02-22 23:24:08
go
Good Man, 2017-02-22 23:24:08

Why does it ask for GOROOT, although it is written in Path?

I want to try Go, downloaded from off. site, installed.
wrote helloworld and tried to run go run hello.go from the console
Got:

go: open C:\Go\src\runtime\internal\sys\zversion.go: The system cannot find the file specified.

Installed ide from jetbrains for Go - writes "GOROOT is not defined"
Although GOROOT is registered in Path and the path to the installed Go folder is set
If I write go version on the command line, then it normally unsubscribes the version
Maybe someone came across, tell me what to do in this case?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dimonchik, 2017-02-22
@AtriSimone

https://habrahabr.ru/post/249545/
prescribe GOPATH

M
Mr Freeman, 2017-02-22
@vladamir

The SDK is the path where the sources of Go itself lie. This is where GOROOT should lead.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question