gvm: Installation not working
Fresh Ubuntu 18 LTS without any go installed:
gvm install go1.4
Downloading Go source...
Installing go1.4...
* Compiling...
/home/bamboo/.gvm/scripts/install: line 84: go: command not found
ERROR: Failed to compile. Check the logs at /home/bamboo/.gvm/logs/go-go1.4-compile.log
ERROR: Failed to use installed version
gvm install go1.14 -pb -b
Installing go1.14...
* Compiling...
/home/bamboo/.gvm/scripts/install: line 84: go: command not found
ERROR: Failed to compile. Check the logs at /home/bamboo/.gvm/logs/go-go1.14-compile.log
ERROR: Failed to use installed version
gvm install go1.14 -pb -B
Installing go1.14 from binary source
ERROR: Failed to extract binary go
About this issue
- Original URL
- State: open
- Created 7 years ago
- Comments: 16 (1 by maintainers)
Commits related to this issue
- #340: clarified readme regarding installation of Go 1.5+ — committed to jcollum/gvm by deleted user 5 years ago
- #340: clarified readme regarding installation of Go 1.5+ (#391) Co-authored-by: Justin Collum <justin.collum@nwea.org> — committed to moovweb/gvm by jcollum 3 years ago
@lucianomda This appears to be an issue with go1.4 on certain versions of macos: https://github.com/golang/go/issues/17182
I was able to get it to work by bootstrapping with go1.7.1 instead of 1.4:
I can then
gvm installlater versions of Go.I am trying a new installation on macos 10.15.4, I didn’t have golang installed in my system, I went directly for a new installation with gvm. When I run
gvm install go1.4 -Bit seems to work. If I rungvm listI seeBut if I run
go versionI see this errorNote that
gvm install go1.4 -Bonly works if you’re on an x86 system. It will happily install an i386 binary on an ARM system, but that’s not going to solve any problem.@johnlhamilton Seems that issue was hijacked. The original problem is that gvm can’t install go on Linux instances without Go already installed. I just tried this in Kali as well, and ran into the same issue. Installing the “golang” package with aptitude fixes the problem but that sort of defeats the purpose of having gvm. I’d rather not have a default system installation as a dependency to a tool that is supposed to enable seamless Go development.
I read a little bit of the shell scripts and have a basic understanding of how gvm works, although I’m fuzzy on how Go is compiled from source. The error from @piotrkochan is weird considering that Go is needed to compile Go?
Here is the problem code:
@johnlhamilton thanks for the reply, it works for me too. Now I can finally get rid of my go instalation via homebrew 😃