0

I have deployed PhotonOS using directions from photon and VIC configuration, while running command docker run -v $(pwd):/go/src/github.com/vmware/vic \-w /go/src/github.com/vmware/vic golang:1.6 make all an Error appears:

Please install go1.7 (found: go version go1.6.3 linux/amd64)

Makefile:152: recipe for target 'goversion' failed

make: *** [goversion] Error 1

` to solve it I have tried to update

go1.6.3 to go1.7 using solution - changeing go version manually

after steps go version is showing go1.4.2, but the previous error still complains on go version 1.6.3. Also, I have tried to install "gvm" using bash < <(curl -s -S -L https://raw.github.com/moovweb/gvm/master/binscripts/gvm-installer) , whenever I try to call gvm install go1.7 it brings

-bash: gvm: command not found

whenever I retry running gvm-installer it says

ERROR: Already installed!

Any help is highly appreciated!!

Community
  • 1
  • 1
Anahit Serobyan
  • 432
  • 1
  • 6
  • 17
  • 1
    A `$PATH` issue? I mean, the `gvm` command is not listed in the `PATH` environment variable of the account which tried to access it. Say, for non-root users, `/sbin` and `/usr/sbin` are typically *not* listed there. Since I have absolutely zero knowledge about what "PhotonOS" is, I can't really verify this -- make your research. – kostix Nov 18 '16 at 12:14
  • Thanks for comment, I'll try to add gvm to $PATH. – Anahit Serobyan Nov 18 '16 at 13:26

1 Answers1

0

use :

docker run -v $(pwd):/go/src/github.com/vmware/vic \-w /go/src/github.com/vmware/vic golang:1.7 make all

command instead, that will work on PhotonOS

koceeng
  • 2,169
  • 3
  • 16
  • 37