WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How to run go-1.6.2-linux-amd64 on corepure64 ?  (Read 3223 times)

Offline glareboa

  • Newbie
  • *
  • Posts: 14
How to run go-1.6.2-linux-amd64 on corepure64 ?
« on: April 22, 2016, 03:07:29 AM »
Somebody did that?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14791
Re: How to run go-1.6.2-linux-amd64 on corepure64 ?
« Reply #1 on: April 22, 2016, 04:30:49 AM »
The instructions are here:

https://golang.org/doc/install/source

Offline glareboa

  • Newbie
  • *
  • Posts: 14
Re: How to run go-1.6.2-linux-amd64 on corepure64 ?
« Reply #2 on: April 22, 2016, 05:49:19 AM »
In order to compile "go" you need to install compiled "go1.4".

From https://golang.org/doc/install/source

Install Go compiler binaries

The Go tool chain is written in Go. To build it, you need a Go compiler installed.
...

"go1.4" also does not run on corepure64.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14791
Re: How to run go-1.6.2-linux-amd64 on corepure64 ?
« Reply #3 on: April 22, 2016, 06:06:44 AM »
What error message do you get when you try to run the pre-built go compiler on corepure64?

Offline glareboa

  • Newbie
  • *
  • Posts: 14
Re: How to run go-1.6.2-linux-amd64 on corepure64 ?
« Reply #4 on: April 22, 2016, 08:35:12 AM »
$ ./go
/bin/sh: ./go: not found

Made such settings (https://golang.org/doc/install#install)

 Add /usr/local/go/bin to the PATH environment variable. You can do this by adding this line to your /etc/profile (for a system-wide installation) or $HOME/.profile:
export PATH=$PATH:/usr/local/go/bin
Installing to a custom location
The Go binary distributions assume they will be installed in /usr/local/go (or c:\Go under Windows), but it is possible to install the Go tools to a different location. In this case you must set the GOROOT environment variable to point to the directory in which it was installed.
For example, if you installed Go to your home directory you should add the following commands to $HOME/.profile:

export GOROOT=/usr/local/go/
export PATH=$PATH:$GOROOT/bin
export GOPATH=/mnt/sda1/gocode
« Last Edit: April 22, 2016, 08:55:06 AM by glareboa »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14791
Re: How to run go-1.6.2-linux-amd64 on corepure64 ?
« Reply #5 on: April 22, 2016, 08:46:43 AM »
Try "sudo ln -s /lib /lib64"

Offline glareboa

  • Newbie
  • *
  • Posts: 14
Re: How to run go-1.6.2-linux-amd64 on corepure64 ?
« Reply #6 on: April 22, 2016, 08:59:42 AM »
Juanito, thank you very much.  :)
 Now "go" to start.