Casabo Lozada
Casabo Lozada

Reputation: 81

Cannot find GOROOT directory: /usr/local/go

I have put this in / go / src /first_webapp  server.go

And when I run the command go install first webapp I get this error,

cannot find GOROOT directory: /usr/local/go

Upvotes: 5

Views: 37315

Answers (1)

Igor
Igor

Reputation: 128

Make sure you have installed Golang correctly and set your env variables like it says in here: https://golang.org/doc/install

Upvotes: 2

Related Questions