-
Notifications
You must be signed in to change notification settings - Fork 538
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gvm install fails on Ubuntu 12.04 #124
Comments
Same here. |
I got the same error with a fresh install of gvm |
I would try This will download the precompiled binary packages as described here: The error you guys are getting is due to the fact that Go changed their tool chain to require a Go compiler to compile from source. Once you have Go 1.4 or higher installed on your system, you can set the $GOROOT_BOOTSTRAP environment variable if you wish to compile other go versions from source. |
Sorry, I was mistaken about this. Turns out I was reading the doc on the master branch, which hasn't been released yet. After a second investigation, it looks like the source folder that gvm is using is not being checked out to the correct branch on Ubuntu 12.04, and is instead using the master branch which references the new Go bootstrap tool. This may be due to a difference in behavior between git versions. Could you guys post the version of git you are using? For me, I reproduced the problem on 12.04 with git at 1.7.9.5 |
Git 1.7.9.5 |
Had same issue on Ubuntu 12.04 with Git 1.7.9.5; upgraded to Git 2.3.1 and problem solved. |
Yep, upgrading to Git 2.3.1 solved the problem. |
Yeah, thanks for the tip. Updating Git to 2.3.1 fixed my issue. |
I hit the same issue as well upgrading to git version 2.3.7 also solved the issue for me. |
Okay, sounds like we've got a fix then: update Git. |
I also hit the same issue with git version 1.7.9.5 and after upgrading to git version 2.4.5 the issue was resolved. |
After installing gvm (and it's prerequisites) and confirming that it works with gvm version:
Go Version Manager v1.0.22 installed at /home/rihards/.gvm
I get the following output when I try to run gvm install go1.4:
Downloading Go source...
Installing go1.4...
ERROR: Failed to compile. Check the logs at /home/rihards/.gvm/logs/go-go1.4-compile.log
ERROR: Failed to use installed version
And the content of the said log file is:
Building Go bootstrap tool.
cmd/dist
ERROR: Cannot find /home/rihards/go1.4/bin/go.
Set $GOROOT_BOOTSTRAP to a working Go tree >= Go 1.4.
./make.bash: line 121: /home/rihards/go1.4/bin/go: No such file or directory
This happens with other versions of go as well, and with different users on the system, including root. I've also tried removing .gvm and reinstalling it, still no luck.
The text was updated successfully, but these errors were encountered: