SUSE LINUX ( s390x-linux-gnu-gcc )

268 views
Skip to first unread message

Sreekanth G

unread,
May 23, 2018, 8:49:23 AM5/23/18
to golang-nuts
Hi, 

I have install  GoLang  on Suse Linux on IBM cloud.
go version is go1.10.2 linux/s390x
go path is 
export PATH=$PATH:/usr/local/go/bin

export GOROOT=$HOME/go1.X

export PATH=$PATH:$GOROOT/bin


When running the go build command it’s showing error. see below ,

linux1@sfhyperledger:~/go1.X/src/syndicateLoans> go build
exec: "s390x-linux-gnu-gcc": executable file not found in $PATH

I got stuck here from 2 days.. I don’t know how will proceed. Could help from this error ?


Thanks & regards,
Sreekanth G

Jan Mercl

unread,
May 23, 2018, 9:06:32 AM5/23/18
to Sreekanth G, golang-nuts



On Wed, May 23, 2018 at 2:49 PM Sreekanth G <sreekant...@gmail.com> wrote:

Hi,


I have install GoLang on Suse Linux on IBM cloud.
go version is go1.10.2 linux/s390x
> go path is
> export PATH=$PATH:/usr/local/go/bin

Note: That's PATH, not GOPATH. 

> export GOROOT=$HOME/go1.X
>
> export PATH=$PATH:$GOROOT/bin

Note: Now the PATH may cause looking for Go binaries on two, possibly incompatible places depending on your current and/or previous Go installations wrt which version you intend to run.

> linux1@sfhyperledger:~/go1.X/src/syndicateLoans> go build
> # github.com/hyperledger/fabric/vendor/github.com/miekg/pkcs11
> exec: "s390x-linux-gnu-gcc": executable file not found in $PATH
>
> I got stuck here from 2 days.. I don’t know how will proceed. Could help from this error ?

You should know where you have installed Go. It depends on the method used for installation. If you're not sure where the binary is, try something like `locate go` or `find / -name go` etc. Then make your $PATH point to only the correct directory.

Note that editing ~/.profile is not effective until next login. You can try `source ~/.profile` or you can put the setup in ~/.bashrc instead and then just open a new terminal.

HTH

--

-j

Sankar

unread,
Jun 4, 2018, 5:45:15 AM6/4/18
to golang-nuts
You need to create an extra link, using the command:

 sudo ln gcc s390x-linux-gnu-gcc

if you are building in s390x. 

Reply all
Reply to author
Forward
0 new messages