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

CentOS 7 cannot execute binary file #26272

Closed
Nurlan199206 opened this issue Jul 8, 2018 · 5 comments
Closed

CentOS 7 cannot execute binary file #26272

Nurlan199206 opened this issue Jul 8, 2018 · 5 comments

Comments

@Nurlan199206
Copy link

Hi

i'm trying to install Go 1.10.3 on CentOS 7 from this tutorial https://golang.org/doc/install?download=go1.10.3.linux-amd64.tar.gz#install

im unpacked from archive with command tar -C /usr/local -xzf go1.10.3.linux-amd64.tar.gz

created env and project folder with commands:

[root@osboxes ~]# export GOROOT=/usr/local/go
[root@osboxes ~]# export GOPATH=$HOME/go/app
[root@osboxes ~]# export PATH=$GOPATH/bin:$GOROOT/bin:$PATH

OS version etc...
3.10.0-693.2.2.el7.centos.plus.i686 #1 SMP Tue Sep 26 14:45:56 UTC 2017 i686 i686 i386 GNU/Linux

after installation steps i am getting error:

[root@osboxes ~]# go version
bash: /usr/local/go/bin/go: cannot execute binary file
[root@osboxes ~]# go bug
bash: /usr/local/go/bin/go: cannot execute binary file
@davecheney
Copy link
Contributor

davecheney commented Jul 8, 2018 via email

@mattn
Copy link
Member

mattn commented Jul 8, 2018

3.10.0-693.2.2.el7.centos.plus.i686

It seems your kernel is 32bit. But you installed 64bit executable.

@Nurlan199206
Copy link
Author

@mattn fail :)

@agnivade
Copy link
Contributor

agnivade commented Jul 8, 2018

@Nurlan199206 - Could you kindly clarify your response ?

Are you saying it is failing even after you installed the 32bit version ?

@davecheney
Copy link
Contributor

Closing based on #26272 (comment)

@golang golang locked and limited conversation to collaborators Jul 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants