Skip to content
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

Closed
rihards opened this issue Feb 12, 2015 · 11 comments
Closed

gvm install fails on Ubuntu 12.04 #124

rihards opened this issue Feb 12, 2015 · 11 comments

Comments

@rihards
Copy link

rihards commented Feb 12, 2015

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...

  • Compiling...
    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.

@dimas-cyriaco
Copy link

Same here.

@hlubek
Copy link

hlubek commented Feb 16, 2015

I got the same error with a fresh install of gvm

@gregorygtseng
Copy link
Contributor

I would try gvm install go1.4 --binary

This will download the precompiled binary packages as described here:
https://github.com/golang/go/blob/18f273ff92d3c4c6a327ee04f1cc0aee6e36d28c/doc/install-source.html#L18

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.

See: https://github.com/golang/go/blob/18f273ff92d3c4c6a327ee04f1cc0aee6e36d28c/doc/install-source.html#L83

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.

@gregorygtseng
Copy link
Contributor

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
On 14.04, git is at 1.9.1

@dimas-cyriaco
Copy link

Git 1.7.9.5

@taesiri
Copy link

taesiri commented Mar 2, 2015

Had same issue on Ubuntu 12.04 with Git 1.7.9.5; upgraded to Git 2.3.1 and problem solved.

@dimas-cyriaco
Copy link

Yep, upgrading to Git 2.3.1 solved the problem.

@ebramanti-techempower
Copy link

Yeah, thanks for the tip. Updating Git to 2.3.1 fixed my issue.

@satoshi75nakamoto
Copy link

I hit the same issue as well upgrading to git version 2.3.7 also solved the issue for me.

@remy-actual
Copy link

Okay, sounds like we've got a fix then: update Git.
Close out @jbussdieker ?

@JayCuthrell
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants