Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: glareboa on April 22, 2016, 03:07:29 AM
-
Somebody did that?
-
The instructions are here:
https://golang.org/doc/install/source
-
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.
-
What error message do you get when you try to run the pre-built go compiler on corepure64?
-
$ ./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
-
Try "sudo ln -s /lib /lib64"
-
Juanito, thank you very much. :)
Now "go" to start.