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

tools/cmd/getgo: Unable to run one line installer in WSL #21533

Open
zeldinha opened this issue Aug 19, 2017 · 5 comments

Comments

@zeldinha
Copy link

commented Aug 19, 2017

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

go version go1.8.3 linux/amd64

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

WSL (Ubuntu for Windows 10):

$ cat /etc/os-release
NAME="Ubuntu"
VERSION="14.04.5 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.5 LTS"
VERSION_ID="14.04"

What did you do?

If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.

Running the suggested one liner installer on my WSL environment:
curl -LO https://get.golang.org/$(uname)/go_installer && chmod +x go_installer && ./go_installer && rm go_installer

What did you expect to see?

Go successfully installed :)

What did you see instead?

This error pops up:
bash: ./go_installer: cannot execute binary file: Exec format error

Note:
After Googling a bit, it could be due to WSL only supporting 64-bit binaries, not 32-bit. See the following issue:
microsoft/WSL#390

Note 2:
Installing manually the current 64-bit version tar file (go1.8.3.linux-amd64.tar.gz) worked just fine.

Thanks! :)

@ALTree

This comment has been minimized.

Copy link
Member

commented Aug 21, 2017

This looks more like a WSL issue(?)

It's not clear to me what are you asking us to do. It's already documented that, on Windows, only

powershell & cmd.exe

are supported.

@zeldinha

This comment has been minimized.

Copy link
Author

commented Aug 21, 2017

I understand it is currently not supported. I was asked to write this report by @spf13.

I suppose the error refers to the go_installer binary being a i386 file:

$ file go_installer
go_installer: ELF 32-bit LSB  executable, Intel 80386, version 1 (SYSV), statically linked, not stripped

As per the issue link in the above report, WSL only supports 64-bit. So in theory, if this could be compiled as a 64-bit binary it would most likely work. I understand however that the root issue should be fixed in WSL and I'm looking forward to it.

Thanks.

@spf13

This comment has been minimized.

Copy link
Contributor

commented Aug 23, 2017

thanks @zeldinha for this information. You've helped a lot and we definitely would like to support WSL.

@jessfraz

This comment has been minimized.

Copy link
Contributor

commented Aug 23, 2017

@forskning

This comment has been minimized.

Copy link

commented Aug 30, 2017

The currently available GNU/Linux distros capable of installation in WSL have an /etc/profile.d directory.

I installed WSL (under Win10 AU) in March, ran a few tests of the compiler toolchain, and uninstalled it.

I then manually cleaned out some left over files from the WSL installation.

http://nurmi-labs.blogspot.com/2017/03/p9p.html

http://nurmi-labs.blogspot.com/2017/04/xs.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
7 participants
You can’t perform that action at this time.