Open nkostic opened 2 years ago
Maybe this will help you: https://github.com/moovweb/gvm/issues/406
same issue with my device as well with Ubuntu 20.04.3 LTS , I could download gvm with version v1.0.22 but getting the same error as
Downloading Go source...
Installing go1.4...
* Compiling...
/home/nkostic/.gvm/scripts/install: line 84: go: command not found
ERROR: Failed to compile. Check the logs at /home/nkostic/.gvm/logs/go-go1.4-compile.log
ERROR: Failed to use installed version
Simple question, I'm guessing you didn't see a reply to this post. @prashant3286
Maybe this will help you: #406
@soulteary Does this work for ubuntu as well cause you are mentioning it works doe mac m1 OS , so confused there :)
Aha, you reminded me that my description is not rigorous, it applies to both x86 and arm.
You can try the installation, the code is open source and can be reviewed at will, hope enjoy. @prashant3286
Still getting the same error for my device @soulteary
I'm encountering the same issue on Lubuntu (not an M1 chip, just a converted Macbook Pro 2012 that I wiped MacOS off of)
I have written another tutorial, you can try it here. @justinfarrelldev
sudo apt install -y binutils bison gcc make
curl -sSL https://github.com/soulteary/gvm/raw/master/binscripts/gvm-installer | bash
I have written another tutorial, you can try it here. @justinfarrelldev
sudo apt install -y binutils bison gcc make curl -sSL https://github.com/soulteary/gvm/raw/master/binscripts/gvm-installer | bash
Thank you, I'll take a look at this later and see if it works.
gvm wants to install go from source, so go is a dependency. I guess in most cases it is not looking to get the binary distribution of the version you ask for, which most exist on the official site.
Wanna leave a tip for anybody else trying to use it until the project is improved/fixed:
export GO_BINARY_BASE_URL=https://go.dev/dl
in your ~/.bashrc
file, just before sourcing gvm. #329 allowed the URL from where to download the binary to be overridden and the one I suggested I took it from the official download link.Did this have an actual fix or workaround? I am hitting this problem myself and would like to keep using gvm, but this issue is making it hard for me to do so.
Edit:
The following seems to fix it for me since it no longer has the compiler issue.
Wanna leave a tip for anybody else trying to use it until the project is improved/fixed:
- Add
export GO_BINARY_BASE_URL=https://go.dev/dl
in your~/.bashrc
file, just before sourcing gvm. Add GO_BINARY_BASE_URL env #329 allowed the URL from where to download the binary to be overridden and the one I suggested I took it from the official download link.- Install any go version adding -B, which will download the official binary version.
- Enjoy.
@pjkaufman @madalinignisca @justinfarrelldev @prashant3286 @soulteary @nkostic kindly try this GO Version Manager: https://github.com/ankitcharolia/goenv
@pjkaufman @madalinignisca @justinfarrelldev @prashant3286 @soulteary @nkostic kindly try this GO Version Manager: https://github.com/ankitcharolia/goenv
same to https://github.com/moovweb/gvm/issues/406#issuecomment-1666529704
the advantage of the bash tool is that it can automatically adapt to scenarios with multiple different CPU architectures. Also, including this issue, it mainly deals with the use of the ARM environment. Your warehouse only handles x86, and the original version of gvm is in There is no problem in x86
@soulteary I think it's pretty easy to release the binary for different CPU architecture. now, goevn supports arm, arm64, amd64 cpu architecture: https://github.com/ankitcharolia/goenv/releases/tag/1.1.7
@madalinignisca thank you, your fix worked for me
The same issue on wsl2 22.04, fix of @madalinignisca helped (using binary installation directly). Thanks!
No go installed I wanted to start clean:
My prerequisite installation step: install go version manager:
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
than, because ubuntu:sudo apt-get install curl git mercurial make binutils bison gcc build-essential
vm version
returns: Go Version Manager v1.0.22 installed at /home/nkostic/.gvm So now to golang instalation stepgvm install go1.4
In terminal:if I check the log:
Installed go 1.18 manually tried again from the top and same result. If zlog used the issue might be coming from there, not sure but unable to use this tool on Ubuntu 20.04.3 LTS following the readme instruction.