[opensuse-go] Issue with GOROOT path
After installing go from devel:languages:go on Leap, I get an error message
that the GOROOT path point to a non-existing directory /usr/lib64/go, when
trying to run go (e.g. `go version`). It turns out that it installed the 32
bit version. After manually setting the GOROOT path to /use/lib/go the
compiler works.
Has anyone else seen this issue? Where is the GOROOT variable set?
It seems the problem can be solved by removing the package and installing it
again. It installs the 64 bit version then.
It is confusing behavior, and I'm a bit lost what actually happened there, as
I was mostly doing the most simple thing you can do to get a newer go version
on Leap. Is somebody able to shed some light on this?
--
Cornelius Schumacher
Hi! On 03/19/2016 04:27 PM, Cornelius Schumacher wrote:
After installing go from devel:languages:go on Leap, I get an error message that the GOROOT path point to a non-existing directory /usr/lib64/go, when trying to run go (e.g. `go version`). It turns out that it installed the 32 bit version. After manually setting the GOROOT path to /use/lib/go the compiler works.
Has anyone else seen this issue? Where is the GOROOT variable set?
I just installed go on a fresh leap virtual machine, and then added the devel:languages:go repo and run "zypper install go", which updated go to 1.6, and everything worked fine for me. Are you able to reproduce that behaviour again? What am I missing?
It seems the problem can be solved by removing the package and installing it again. It installs the 64 bit version then.
It is confusing behavior, and I'm a bit lost what actually happened there, as I was mostly doing the most simple thing you can do to get a newer go version on Leap. Is somebody able to shed some light on this?
On Dienstag, 22. März 2016 12:38:02 CET Jordi Massaguer Pla wrote:
Are you able to reproduce that behaviour again? What am I missing?
I just reproduced it on a different Leap machine:
I added the d:l:g repo and then ran `zypper install go`. Then zypper told me
the package is from a different vendor and said I have to do `zypper install
go-1.6-182.1.i586`. This installs the 32 bit version. Running go then gives
the described error ("go: cannot find GOROOT directory: /usr/lib64/go").
--
Cornelius Schumacher
On 03/23/2016 04:18 PM, Cornelius Schumacher wrote:
On Dienstag, 22. März 2016 12:38:02 CET Jordi Massaguer Pla wrote:
Are you able to reproduce that behaviour again? What am I missing? I just reproduced it on a different Leap machine:
I added the d:l:g repo and then ran `zypper install go`. Then zypper told me the package is from a different vendor and said I have to do `zypper install go-1.6-182.1.i586`. This installs the 32 bit version. Running go then gives the described error ("go: cannot find GOROOT directory: /usr/lib64/go").
I see. If you run "zypper install go-1.6" it selects go-1.6-181.1.x86_64 (with vendor change) It is weird that it tells you to install the i586 version I see the release is different from i586 and x86_64: go-1.6-182.1.i586 go-1.6-181.1.x86_64 the one for i586 is greater ... may that be the issue?
participants (2)
-
Cornelius Schumacher
-
Jordi Massaguer Pla